image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old May 30th, 2008, 08:07 PM
Registered User
 
Join Date: Jul 2005
Posts: 832
Thanks: 0
Thanked 1 Time in 1 Post
simbalala is on a distinguished road
Help with ssh public key/private key authorization

I got fed up having to put in my password every time I log into my servers. I have a hot key but it’s still annoying.

So I’m trying public key/private key authorization. At first I used ssh-keygen on my Mac (many times) to generate the keys and copying the public keys to the server into the directory their FAQs specify. Nothing ever happened, I can watch using ssh -vvv.

Then I had the idea of running ssh-keygen on the server and copying the private key to my machine. Whammo, suddenly the server understands the keys exist, it complains if the permissions on my local private keys are set too low, it also prompts for passphrase(s) then accepts them.

As a side note, it must copy them from my user space down to root level because even if I rename the ones in my user space I still get prompted for the passphrases. I was tired of having it prompt for dsa and rsa both so eventually I renamed the rsa private key on my Mac and it stopped prompting for the rsa passphrase.

But… the real problem is that it still doesn’t work, eventually it asks for my password.

I tried putting my ”Mac_machine_name local_user_name” in a .shosts file at my user root level on the server but that seems to have no effect. That’s a suggestion from the ssh man page.

Does anyone have more ideas?
Reply With Quote
  #2  
Old May 31st, 2008, 12:03 AM
Registered User
 
Join Date: Jul 2005
Posts: 832
Thanks: 0
Thanked 1 Time in 1 Post
simbalala is on a distinguished road
I got it. I’m not going to post a long winded explanation but if anyone needs to know just post a reply.

Let it be known though that my hosting company’s FAQs suck.
Reply With Quote
Reply

Thread Tools

Posting 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 Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 09:41 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.