Using ssh
Summary
- Log in to the client machine and open Terminal ( /Applications/Utilities/Terminal )
- Connect using ssh
- If the server username is the same as your local username : Type ssh serverhostname and press Enter
- If the server username is different from your local username : Type ssh -l serverusername serverhostname and press Enter. (That's a lowercase ell.)
- Because this is our first-time connection you will see the following:
[localhost:~] djclark% ssh 192.168.0.3 The authenticity of host '192.168.0.3 (192.168.0.3)' can't be established. RSA key fingerprint is 11:d4:eb:60:f2:32:ae:a5:00:9d:cf:71:9d:43:b5:8d. Are you sure you want to continue connecting (yes/no)?- Type yes to continue. This step adds the server's public key to your known hosts file (~/.ssh/known_hosts2). ssh will then tell you that it has added the key:
Warning: Permanently added '192.168.0.3' (RSA) to the list of known hosts.- The next thing that will appear is a password prompt. Enter the password you entered into SSH Helper
Enter passphrase for key '/Users/djclark/.ssh/id_dsa':- You will then be shown a prompt. Congratulations, you are now logged in.
Welcome to Darwin! [localhost:~] djclark%Welcome to the world of encrypted communications.