Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.