LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 11-27-2005, 10:41 PM   #1
thorney
Member
 
Registered: Jul 2005
Location: Canada
Distribution: Ubuntu Hardy
Posts: 98

Rep: Reputation: 15
Can't get passwordless ssh working


Hi,

I followed the Howto on how to use keys to allow passwordless ssh login and I'm still having trouble. I ran the command: ssh-keygen -t dsa
and then the command: cat ~/.ssh/id_dsa.pub | ssh <user>@<server> "cat - >> ~/.ssh/authorized_keys"
on the client machine. Then I checked whether the key in ~/.ssh/authorized_keys on the server was the same as ~/.ssh/id_dsa.pub on the client and the were the same. Then I went into /etc/ssh/sshd_config and everything looks good (to me anyway). Does anyone have any ideas?!!!

thanks
 
Old 11-27-2005, 10:43 PM   #2
thorney
Member
 
Registered: Jul 2005
Location: Canada
Distribution: Ubuntu Hardy
Posts: 98

Original Poster
Rep: Reputation: 15
I forgot to mention:


When I checked the sshd_config file it was on the server (just in case you thought I checked it on the client) and then I restarted sshd and tried again and still got a passwd prompt.
 
Old 11-27-2005, 11:05 PM   #3
dnorseman
Member
 
Registered: Aug 2003
Location: Chicago, USA
Distribution: RHEL, CentOS, Ubuntu
Posts: 43

Rep: Reputation: 15
Check the permissions on the keys should be read/write only by user, otherwise ssh will refuse to match keys. Does that help?
 
Old 11-27-2005, 11:08 PM   #4
thorney
Member
 
Registered: Jul 2005
Location: Canada
Distribution: Ubuntu Hardy
Posts: 98

Original Poster
Rep: Reputation: 15
Yes that was it!! Awesome thanks!!!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ssh passwordless : Urgent muneebs123 Linux - Security 23 06-21-2005 09:26 PM
Passwordless SSH problem? LQYY Linux - Software 5 06-09-2005 10:56 PM
Passwordless SSH access to LTSP Terminals MurrayL Linux - Networking 0 06-06-2005 06:10 AM
Passwordless SSH for Cluster nedian123 Linux - Networking 3 12-07-2004 11:15 PM
Regarding Passwordless SSH nedian123 Linux - Software 1 08-05-2004 06:07 PM


All times are GMT -5. The time now is 10:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration