Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to SSH and I have to log into a remote client. The owner of that client sent me a private key in a text file and a .ppk file. How do I use these to login?

I'm running OS X Lion.

share|improve this question
up vote 1 down vote accepted

You don't need the ppk file if you don't use PuTTY. Instead, save the plain text private key to a file.

mkdir -p ~/.ssh
open -e ~/.ssh/my-key

Paste the key there, and save. Now make it readable by your user only:

chmod 600 ~/.ssh/my-key

Then, use SSH to connect:

ssh user@host -i ~/.ssh/my-key
share|improve this answer

try typing

ssh user@<target server> -i /path/to/key/file

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .