What I can't figure out is how to either respond to the "terminal type" prompt or automatically respond to it. These are the two steps I'd like to eliminate, so I can open terminal and run a script that eliminates these two steps. I have key pairs set up, so don't have to enter passwords, but I get the prompt for my terminal type. Now, I have to copy and paste it into the terminal. I can set up an ssh tunnel and connect to the remote machine by executing the following line of script: ssh -f -L 2222::22 sleep 10 ssh -p 2222 I want to do is somehow execute this line automatically. I'm on a Mac, connecting to a linux machine. Hit Enter.I'm a CS student, and still learning a lot of these things, and so please bear with me if I don't have a full grasp on what I'm trying here. Please note that you will NOT see your cursor moving, or any characters typed when typing your password. Warning: Permanently added ',1.2.3.4' (ECDSA) to the list of known hosts. The authenticity of host ' (1.2.3.4)' can't be established.ĮCDSA key fingerprint is SHA256:85XQqNFOQdSnHKH3AxOm8lIgtB948DF+qCgMYah+km0.Īre you sure you want to continue connecting (yes/no)? yes Type 'yes' and hit the Enter key to continue. Ssh If this is your first time connecting to this server from this computer, you will receive a message similar to the following.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |