LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-04-2007, 11:18 PM   #1
lin2winwin
LQ Newbie
 
Registered: Nov 2007
Posts: 26

Rep: Reputation: 15
ssh automation stopped working


Hi,

I have been using ssh automation (in a rocks cluster) by using the id_rsa.pub in authorized_keys file. It was working fine for last one year.

Recently, I tried to automate the connection from my laptop to the cluster, and I found that it didn't work. But, to my horror, the whole ssh automation didnt work, for any machine that is connecting to or within the cluster. I now needed to type 10 passwords for a job that requires 10 CPUs!!
I tried removing the .ssh directory, and creating a new authorized_keys file. But, no vain. Then, finally, I asked the system admin to delete and re-create my user id. Now it works flawlessly. Can anyone tell me what happened out there? Did the ssh server mark my user name as some security threat?

Though I solved the problem, I required the admin to do the stuff of re-creating my login id. But, is there a way to do it myself??
 
Old 12-05-2007, 01:03 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The authorized keys and known_hosts entry in the servers contain the userid and hostname of the client or maybe an ip address. ( The end of Authorized_Keys and the beginning of known_hosts ). Since you changed this by using another computer, you needed to enter your password.

There may also have been a dns lookup, depending on the server's configuration. If you usually connect from a host that has an entry in your networks nameserver, or the hosts /etc/hosts file, and this time you didn't, that could be a problem.

Also if the permissions of your private key in ~/.ssh/ are publicly readable, you won't be able to use the client at all.

Last edited by jschiwal; 12-05-2007 at 01:09 AM.
 
Old 12-05-2007, 10:58 AM   #3
Quigi
Member
 
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Rep: Reputation: 31
Most often it's a permission issue. E.g., on the "server" where sshd runs, you must own ~, ~/.ssh, and ~/.authorized_keys, and they must only be writable for yourself. By design you won't get any hint as to what is wrong on the other computer where you run ssh (the "attacker", e.g., your laptop). Problems are logged on the server. E.g., /var/log/auth may contain a line like this,
Code:
Dec  5 11:13:02 yourserver sshd[31035]: Authentication refused: bad ownership or modes for directory /home/lin2winwin
 
  


Reply



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
Added 2nd NIC/Network, now incoming SSH has stopped working dkaplowitz Linux - Networking 2 04-20-2007 08:39 AM
ssh stopped working in Slackware-current. merchtemeagle Slackware 10 04-27-2006 06:01 PM
proces ssh and scp stopped, connection hangs prut Linux - Networking 2 04-10-2004 10:57 AM
Internet connection sharing / ssh stopped it toastermaker Linux - Newbie 5 11-23-2003 12:52 PM
ssh X forwarding has stopped working. microtim Linux - Networking 2 09-20-2003 05:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:31 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
Open Source Consulting | Domain Registration