新建用户无法通过密码登陆

新建普通用户无法通过ssh连接

ubuntu@duanshuaixing:~$ ssh [email protected]
The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.
ECDSA key fingerprint is SHA256:JqM3Np/h4YmEkCJ8O+2Ga+Zth2t15sKHm0xH+M+xf5s.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '127.0.0.1' (ECDSA) to the list of known hosts.
Permission denied (publickey).

解决办法

	sed -i 's/PasswordAuthentication.*/PasswordAuthentication yes/' /etc/ssh/sshd_config
	service sshd restart

猜你喜欢

转载自blog.csdn.net/weixin_47003048/article/details/108347444