Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-04-2005, 12:24 AM   #1
LQ Newbie
Registered: Dec 2004
Posts: 4

Rep: Reputation: 0
Passwordless SSH problem?

Dear masters,

Let me state my problem:
I have a 5-node PC cluster, all running Gentoo Linux 2005.0.
On the master node, the /home and /opt directories are
exported as NFS, which are mounted on the /home and /opt
directories of the four slave nodes, respectively.

I created several normal users with their home directories
located in /home on the master node, so that it can be
seen on all other nodes. Then, I did the following for each user
to setup passwordless ssh:
1. ssh-keygen -t rsa (withour setting the passphrase)
2. cd ~/.ssh
3. cp authorized_keys2
To this point, everything is ok. I can get passwordless ssh
for all these users.

Then I created a special user, whose home directory is in /opt.
After I did the same thing as above, the passwordless ssh
doesn't work. I see "Connection closed by"
when I tried to ssh this machine. I checked the log file on There is no record for this connection.

After I remove the authorized_keys2 file in .ssh, I can log in
this machine by providing a password.

Hope I state my problem clearly. Any comments are greatly appreciated.

Old 06-04-2005, 06:01 PM   #2
Senior Member
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,382

Rep: Reputation: 91
Perhaps your special user isn't allowed to run ssh.
Old 06-05-2005, 12:22 PM   #3
LQ Newbie
Registered: Dec 2004
Posts: 4

Original Poster
Rep: Reputation: 0
But I can ssh to the slave nodes if I delete the publice key file....
Old 06-05-2005, 12:26 PM   #4
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Is the export file given the same options, and fstab mounting them with the same options?

If you:
ls -ld
your /home and /opt directories, both on the server and on the NFS mounted points, do you get the same permissions?

Old 06-05-2005, 10:09 PM   #5
LQ Newbie
Registered: Dec 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for your reply. Below is content of /etc/exports.

"ls -ld" shows the same permission for /home and /opt.

Below is the output from "ssh -v node-1", seems no error message.

OpenSSH_3.9p1, OpenSSL 0.9.7e 25 Oct 2004
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to node-1 [] port 22.
debug1: Connection established.
debug1: identity file /opt/tccmp/.ssh/identity type -1
debug1: identity file /opt/tccmp/.ssh/id_rsa type 1
debug1: identity file /opt/tccmp/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_3.9p1
debug1: match: OpenSSH_3.9p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.9p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'node-1' is known and matches the RSA host key.
debug1: Found key in /opt/tccmp/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /opt/tccmp/.ssh/identity
debug1: Offering public key: /opt/tccmp/.ssh/id_rsa
Connection closed by
Old 06-09-2005, 10:56 PM   #6
LQ Newbie
Registered: Jun 2005
Posts: 1

Rep: Reputation: 0
passwordless ssh login

I am trying to ssh from a windows system to MAC. What do I need to do so that I can ssh from windows to MAC without entering the user's password.


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
Can't get passwordless ssh working thorney Linux - Networking 3 11-27-2005 11:08 PM
Ssh passwordless : Urgent muneebs123 Linux - Security 23 06-21-2005 09:26 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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:32 PM.

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