ssh允许密码登录
编辑/etc/ssh/sshd_config
vi /etc/ssh/sshd_config将文件中的PasswordAuthentication no改为PasswordAuthentication yes
PasswordAuthentication yes保存退出/etc/ssh/sshd_config后,重启sshd服务
systemctl restart sshd.service
SSH免密登录
ssh-keygen -t rsa
ssh-copy-id -i /home/deploy/.ssh/id_rsa.pub root@192.168.61.64Last updated
Was this helpful?