ssh root登陆问题

[root@datanode6 .ssh]# ssh datanode6
Permission denied (publickey).

[root@datanode6 ssh]# ll
total 612
-rw-r–r-- 1 root root 581843 Apr 11 2018 moduli
-rw-r–r-- 1 root root 0 Apr 17 16:38 sshconfig
-rw-r–r-- 1 root root 361 Apr 16 17:30 ssh_config
-rw-r–r-- 1 root root 2276 Apr 11 2018 ssh_config.rpmnew
-rw------- 1 root root 1430 Apr 24 16:59 sshd_config
-rw------- 1 root root 3907 Apr 11 2018 sshd_config.rpmnew
-rw-r----- 1 root ssh_keys 227 Dec 13 2016 ssh_host_ecdsa_key
-rw-r–r-- 1 root root 162 Dec 13 2016 ssh_host_ecdsa_key.pub
-rw-r----- 1 root ssh_keys 387 Dec 13 2016 ssh_host_ed25519_key
-rw-r–r-- 1 root root 82 Dec 13 2016 ssh_host_ed25519_key.pub
-rw-r----- 1 root ssh_keys 1679 Dec 13 2016 ssh_host_rsa_key
-rw-r–r-- 1 root root 382 Dec 13 2016 ssh_host_rsa_key.pub
[root@datanode6 ssh]# pwd
/etc/ssh

vi sshd_config

PermitRootLogin yes

你可能感兴趣的:(linux)