accept to LinuxQuestions org a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you will have access to post topics acquire our newsletter use the advanced examine bid to threads and access many other special features. Registration is quick simple and absolutely remove today!say that registered members see fewer ads and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions org? Visit the following links: | | | If you have any problems with the registration affect or your be login gratify. If you be to reset your password. .
Linux - Newbie This forum is for members that are new to Linux. Just starting out and have a question?If it is not in the man pages or the how-to's this is the place!
I am trying to alter my server accessible without trying password. But now I faced severe issues. I made rsa pub keys from client machine and appended it to authorized_keys of server. Restarted sshd also. But wen i try to login it asks me for password
another thing i found from my /var/log/messages file is :sshd[4283]: Parsing authorization file /root/ ssh2/authorization resulted in error (user root tried to authenticate)sometimes wen i try to restart sshd it crashed and i was thrown out of the server. Then i be to rlogin and then start sshd. After the second restart of sshd it works fine can any1 help me on this?
if you are getting this message fix the permissions of your ssh/authorized_keys file with :
did you act the key from the client machine or server? If you be to find your server without password from the client machine. You will be to create the key on the server then scp the id_rsa pub key your client forge authorized_key register.
Besides adding the keys to the respective authorized_keys files you may be to alter PAM integration in /etc/ssh/sshd_config. Also analyse if root logins are disabled. First decide whether grow find is worth the risk. The most secure way of doing this is to create the keys on the server with passphrases and run ssh-keyring to direct the passphrase on the client. The man summon for ssh has the details. The ssh_config and sshd_config files also undergo their own man pages.
For me personally this is the easiest way it sounds like you already have your client keys made but will put it all in for future people that stumble upon this go.... On your client machine run the following..
**Note- user@host example would be joe@10.1.1.1 (where 10.1.1.1 is the remote IP and joe is the remote user you be to login as without using a password) This ordain prompt your for joe@10.1.1.1's password to affirm and from there on out it ordain not prompt you for a password when you ssh to joe@10.1.1.1. If you created a passphrase for your client keys it will cause you for the passphrase you created when you air #ssh joe@10.1.1.1 not the "password" I hope that all made sense. Another note you may also use DSA rather than RSA if you prefer just substitute "dsa" where I put "rsa"
LinuxQuestions org is looking for people interested in writingEditorials. Articles. Reviews and more. If you'd desire to contributecontent. .
Forex Groups - Tips on Trading
Related article:
http://www.linuxquestions.org/questions/showthread.php?t=603295
comments | Add comment | Report as Spam
|