Can you log in without using the keys?
Hi Gurus out there!
Had a problem configuring openssh. I installed openssh rpms into my OpenNA 1.0 Linux server:
$ rpm -Uvh openssh*
$ rpm -qa|grep ssh
openssh-server-3.7.1p2-2
openssh-clients-3.7.1p2-2
openssh-3.7.1p2-2
Then, created an OpenSSH private and public keys.
# su admin
$ ssh-keygen -t rsa
then copy id_rsa.pub (from ns1) into my user home on the remote computer (ns2) as /home/admin/.ssh/authorized.keys. I did the same ns2-ns1.
However, things did not turned-out well for me. When I attempt to login
# su admin
[admin@ns1 root]$ ssh -l admin ns2.domain.com
(User admin had an administrative priveledges on my Linux Machine.)
No message appear, just blank. I checked /var/log/messages but no error can be found. What could be the problem?
How can I fix it?
Can you log in without using the keys?
Make sure your /etc/ssh/sshd_config has:
(not commented out)Code:RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile %h/.ssh/authorized_keys
and if so, change your authorized.keys to authorized_keys
Bookmarks