Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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??
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.