System Administration Guide: Security Services

How to Log In to Another Host with Secure Shell

  1. Use the ssh command, specifying the name of the remote host.


    myLocalHost% ssh myRemoteHost
    
    The first time you run ssh, a prompt questions the authenticity of the remote host, as follows.


    The authenticity of host 'myRemoteHost' can't be established.
    RSA key fingerprint in md5 is: 04:9f:bd:fc:3d:3e:d2:e7:49:fd:6e:18:4f:9c:26
    Are you sure you want to continue connecting(yes/no)? 

    This prompt is normal, and you should type yes and continue. If you have used ssh in the past on this remote host and this warning message still appears, then there might be a breach in your security.

  2. Enter the Secure Shell passphrase and the account password when you are prompted for them.


    Enter passphrase for key '/home/johndoe/.ssh/id_rsa': <Return> 
    johndoe@myRemoteHost's password: <Return>
    Last login: Fri Jul 20 14:24:10 2001 from myLocalHost
    myRemoteHost%

    Conduct any transactions on the remote host. Any commands that you send and any responses that are received are encrypted.


    Note –

    If you wish to subsequently change your passphrase, use ssh-keygen with the -p option.


  3. When you are finished with your remote session, type exit or use your usual method for exiting your shell.


    myRemoteHost% exit
    myRemoteHost% logout
    Connection to myRemoteHost closed
    myLocalHost%