sudo passwd root
su root
vi /etc/ssh/sshd_config
找到PasswordAuthentication no,把no改为yes
sudo /sbin/service sshd restart
SSH远程登录配置
本文介绍如何通过修改sshd_config文件中的PasswordAuthentication参数,启用SSH密码认证,实现远程登录功能。具体步骤包括使用sudo权限编辑配置文件,将PasswordAuthenticationno改为yes,并重启SSH服务。
sudo passwd root
su root
vi /etc/ssh/sshd_config
找到PasswordAuthentication no,把no改为yes
sudo /sbin/service sshd restart
1375

被折叠的 条评论
为什么被折叠?