I can't SSH without a password
by lucmove from LinuxQuestions.org on (#5R3C7)
I followed this procedure:
Code:# ssh-keygen -t rsaGenerating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): ~/.ssh/sshkey
(blah blah blah done)
Code:# ssh-copy-id -i ~/.ssh/sshkey.pub -p 22 root@192.168.1.6(it requests the target machine's ssh password. I type it. Done)
(I checks the /root/.ssh/authorized_keys file in the target mmachine. The new key is there. I know because this file was empty until one minute ago.)
I restart sshd on the target machine. I try to login from the client machine. It still wants the password.
I google. I find some suggestions. I add 'PubkeyAcceptedKeyTypes=+ssh-dss' to several files:
client machine:
/etc/ssh/ssh_config
/etc/ssh/sshd_config
~/.ssh/config
target machine:
/etc/ssh/ssh_config
/etc/ssh/sshd_config
I restart sshd on the target machine. I try to login from the client machine. It still wants the password.
What am I doing wrong, or what have the OpenSSH people disabled or made secret this time?
Code:# ssh-keygen -t rsaGenerating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): ~/.ssh/sshkey
(blah blah blah done)
Code:# ssh-copy-id -i ~/.ssh/sshkey.pub -p 22 root@192.168.1.6(it requests the target machine's ssh password. I type it. Done)
(I checks the /root/.ssh/authorized_keys file in the target mmachine. The new key is there. I know because this file was empty until one minute ago.)
I restart sshd on the target machine. I try to login from the client machine. It still wants the password.
I google. I find some suggestions. I add 'PubkeyAcceptedKeyTypes=+ssh-dss' to several files:
client machine:
/etc/ssh/ssh_config
/etc/ssh/sshd_config
~/.ssh/config
target machine:
/etc/ssh/ssh_config
/etc/ssh/sshd_config
I restart sshd on the target machine. I try to login from the client machine. It still wants the password.
What am I doing wrong, or what have the OpenSSH people disabled or made secret this time?