Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > SSH public/private key stopped working

SSH public/private key stopped working
Thread Tools
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status: Offline
Reply With Quote
Nov 8, 2006, 04:36 PM
 
I have my home computer set up so that I can SSH in from work. I set up a public/private key so that I don't have to send a password. I have been doing this for several weeks with no problems at all, but it stopped working today. When I try to SSH in I get the following:

:~ myname$ ssh -l myname mycomputer.homedns.org
Enter passphrase for key '/Users/myname/.ssh/id_dsa':
Enter passphrase for key '/Users/myname/.ssh/id_dsa':
Enter passphrase for key '/Users/myname/.ssh/id_dsa':
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

I know I am entering the same password that I have always entered because I put it in my Keychain and double-checked it. Is there any way to find out what is going wrong? I know the most likely culprit is that I am entering the wrong password, but I know it is correct. Do I just have to set it all up again?

thanks,
kman
     
Junior Member
Join Date: Nov 1999
Location: Rochester, MN
Status: Offline
Reply With Quote
Nov 16, 2006, 08:31 AM
 
try ssh -v to see more verbose output, otherwise you can regenerate your key pairs and it should work fine again.
     
Mac Elite
Join Date: Oct 2000
Location: Seattle
Status: Offline
Reply With Quote
Nov 16, 2006, 10:23 AM
 
You are using dynamic DNS, no? The IP may have changed.

The work computer may have an old IP address cached. Try flushing the DNS cache.

on a mac:
sudo lookupd -flushcache

there must be a similar mechanism for the PC, if that's what you are using at work, but I don't know it.
You can take the dude out of So Cal, but you can't take the dude outta the dude, dude!
     
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Offline
Reply With Quote
Jan 13, 2007, 07:33 PM
 
Are these both Macs ?

I had never any luck with SSH key authentication between two Macs on the same network though. For some reason, it never worked.

-t
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:48 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2