Article 5R3C7 I can't SSH without a password

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?latest?d=yIl2AUoC8zA latest?i=xz2dmIJHKEI:k4BOmLjDigs:F7zBnMy latest?i=xz2dmIJHKEI:k4BOmLjDigs:V_sGLiP latest?d=qj6IDK7rITs latest?i=xz2dmIJHKEI:k4BOmLjDigs:gIN9vFwxz2dmIJHKEI
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments