Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ssh keys strangeness
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
alfalfa
n00b
n00b


Joined: 17 Jul 2002
Posts: 52

PostPosted: Sat Jul 27, 2002 3:52 pm    Post subject: ssh keys strangeness Reply with quote

Ok, so I've followed the steps here:

http://www-106.ibm.com/developerworks/opensource/library/l-keyc.html?dwzone=opensource

for setting up ssh and generating keys. So now, when I ssh into my machine, I'm asked for the passphrase instead of the password, which provides me with more security. Cool. Except, I noticed that if I incorrectly enter the passphrase 3 times, it doesn't tell me to get lost, it then asks me for my password! What's the point of generating keys if it will settle for a password (instead of passphrase)? Anyone know what's going on? Thanks


Groan. I just tried to ssh into my machine from a different one than I had been using before, and now I'm not even prompted for a passphrase at all. What am I missing here? :(
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sun Jul 28, 2002 2:44 am    Post subject: Reply with quote

It tries PubkeyAuthentication first (with the keys you made), so the passphrase question is coming from the client machine. The second machine probably has an empty passphrase on the key, which is why you don't get asked. Then, it is falling back to PasswordAuthentication, which is why you are getting asked for a password - from the server this time.

To stop that, set PasswordAuthentication to no in the server's /etc/ssh/sshd_config.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
alfalfa
n00b
n00b


Joined: 17 Jul 2002
Posts: 52

PostPosted: Sun Jul 28, 2002 3:23 am    Post subject: Reply with quote

That did it! Thanks! So much to learn...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum