views:

145

answers:

1

I have been using putty on WINDOWS XP and used the .ppk file to connect to my linux servers (several servers)

On the servers I have the following folder and file ~/.ssh/authorized_keys

I now want to use a MAC to connect via the terminal. I have set up the remote connections to the servers manually and want to know how I can setup using the ppk file or the private/public key within it.

Please note : I already am using private/public key login from WINDOWS so I do not need to create a new key using keygen, I just want to know how to set up now that I have the keys already. (that is I already have the authorized key lists on the server, and the public and private key)

+1  A: 

You can ssh directly from the Terminal on Mac, but you need to use a .PEM key rather than the Putty .PPK key. You can use PuttyGen on Windows to convert from .PEM to .PPK, I'm not sure about the other way around though.

Once you have the key, open a terminal window and:-

ssh -i privatekey.pem [email protected]

The private key must have tight security settings otherwise SSH complains. Make sure only the user can read the key.

chmod go-rw privatekey.pem
Purpletoucan