重启ssh并修改登录方式

nginx 收藏
0 28
vim /etc/ssh/sshd_config

开启 PermitRootLogin yes

开启PasswordAuthentication yes

vim /etc/passwd

更改需要密码登录用户为
www:x:1001:1001::/home/www:/bin/bash

systemctl restart ssh.service

systemctl restart sshd.service


    暂时没有人评论