Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

SSH Public Key Authentication

I just created a public/private key from my new imac and it allows me to login to my laptop and old G5 without a password. Really slick. So, I've got that much working. I did include a passphrase when setting up the key.

My problem is when I ssh into the imac remotely from my blackberry, I get in with a password. When I want to get to the G5 during this session, I am always asked for the passphrase. Any ideas?

Thank you,

J.

Late 2k9 iMac, Dual 2Ghz Power Mac/2 Ghz Core Duo MacBook Pro, Mac OS X (10.6.2)

Posted on Jan 26, 2010 6:40 PM

Reply
7 replies

Jan 28, 2010 8:39 AM in response to Ebola

When you login to your imac remotely, the ssh-agent is not started automatically. You must start it manually, and add you identity to the agent by the ssh-add command:

imac$ eval $(ssh-agent)
Agent pid nnnnn
imac$ ssh-add
Enter passphrase for /Users/you/.ssh/id_xxx: <enter your passphrase>
Identity added: /Users/you/.ssh/id_xxx
imac$ ssh your-G5-host
your-G5-host$ (you will not be asked for passphrase)

You must enter your passphrase once (only onece) when adding your identity to the agent.

SSH Public Key Authentication

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.