# 阿里云linux重启实例后配置密码登录

1 min read

修改/etc/ssh/sshd_config
在最下面的:

UseDNS no
AddressFamily inet
SyslogFacility AUTHPRIV
PermitRootLogin yes
PasswordAuthentication no

把这条改为yes

PasswordAuthentication yes

然后重启sshd服务

systemctl restart sshd

Comments