SSH Auto Login – MacOS X
- Create your set of keys:
Start up the Terminal application and run:
ssh-keygen -t rsassh-keygen will the ask where to store the public key it is about to create. Normally the default suggestion works just fine (~/.ssh/id_rsa.pub). ssh-keygen then ask you to enter a pass phrase. Please use something secure here and please also remember it.
- Copy the public key to your SSH server
Copy the newly created public key to the SSH server(s) you need to auto login into by using your favourite transport method. Please be careful not to overwrite ~/.ssh/authorized_keys if it already exist! This is how I personally copy the key, might not be your preferred method:
- Optional step: You might consider restricting file access to the file authorized_keys on the SSH server.
chmod 0600 ~/.ssh/authorized_keysto even further improve your system security.
Trackback from your site.