Linux
ssh
ssh-copy-id -p 22 root@192.168.1.2
# cat /etc/hosts 192.168.2.3 ubuntu-03
hostname
root@ubuntu-01:~# ssh ubuntu-03
cat /etc/ssh/sshd_config
#PasswordAuthentication yes PasswordAuthentication no
/etc/init.d/ssh restart
京公网安备 11010502049817号