# 阿里云linux重启实例后配置密码登录
1 min read
修改/etc/ssh/sshd_config
在最下面的:
UseDNS noAddressFamily inetSyslogFacility AUTHPRIVPermitRootLogin yesPasswordAuthentication no把这条改为yes
PasswordAuthentication yes然后重启sshd服务
systemctl restart sshd修改/etc/ssh/sshd_config
在最下面的:
UseDNS noAddressFamily inetSyslogFacility AUTHPRIVPermitRootLogin yesPasswordAuthentication no把这条改为yes
PasswordAuthentication yes然后重启sshd服务
systemctl restart sshd