SSH Public Key Screencast Notes
These are just a few quick notes to accompany Peter Upfold’s screencast. If you haven’t ready I would suggest you give it a watch before following this rather brief notes
On the local machine
- run:
ssh-keygen -t rsa
- Accept default path.
- Enter a passphrase. (terminal can save this in Keychain)
- Finder > Go > Type: “.ssh”
- Copy
id_rsa.pub
On the remote machine
- run:
touch .ssh/authorized_keys
- Edit the file:
.ssh/authorised_keys
- Paste the contents of the
id_rsa.pub
file into.ssh/authorized_keys
Permissions Check
- The
authorized_keys
file needs to berw
for the user. - That is
chmod 600
to change, if needed.
Logging in
- Login as usual from the Terminal.
- When asked for the password to the ssh key, this is the passphrase mentioned earlier.
Once again, thank you, Peter for recording it for me, and the mention.