1、修改sshd_config
sudo vi /etc/ssh/sshd_config
PasswordAuthentication yes
2、重启sshd
sudo systemctl restart sshd
3、设置登录密码
sudo passwd
1、修改sshd_config
sudo vi /etc/ssh/sshd_config
PasswordAuthentication yes
2、重启sshd
sudo systemctl restart sshd
3、设置登录密码
sudo passwd