First cool thing that everybody knows already: Mac OSX is based on Unix so you get ssh out of the box.
Now you can generate public or private key pair using PuTTYgen. Download PuTTYgen for Mac. Below is the detailed guide to download PuTTYgen on Mac operating system. Mac OS has a built-in command-line SSH client known as Terminal. To utilize it, go to Finder and then opt for Go. From my client computer I'm able to ssh user@ip for the public IP and I am able to get into the Mac, so port forwarding is working. Now I want to set up SSH keys. I've generated SSH keys on my client computer but I wanted to get the SSH Daemon on the Mac setup first. I edited /etc/sshconfig and set PasswordAuthentication no.
Second cool thing you may not know: OS X 10.5 actually also comes with an ssh key agent (ssh-agent). That means that, without any additional software (like PuTTY Agent on Windows...), Mac OSX can actually load an encrypted private key into memory and remember it for all subsequent connections...
Copy Ssh Key Mac
Third cool thing that almost seems too good to be true: ssh-agent can store the passwords of the encrypted keys into your keychain. Than means that you have to tell it once to remember the decryption password for your key(s) like this:
ssh-add -K .ssh/id_whatever_your_rivate_key_is
And next time you log into your mac and try to ssh somewhere, your private key will be loaded automagically (as long as your keychain is unlocked of course).
Very groovy!!
Mac Ssh Key Location
This entry was posted on Dec 21 2008 at 02:34 by admin and is filed under Linux stuff, Mac stuff. Tags: howto, mac os x, ssh, terminal