sftp root 登录均都要开启
vim /etc/ssh/sshd_config
编辑 /etc/ssh/sshd_config
PermitRootLogin yes
# PasswordAuthentication no
PasswordAuthentication yes
重启即可使用root账号登录
systemctl restart ssh
sftp root 登录均都要开启
vim /etc/ssh/sshd_config
编辑 /etc/ssh/sshd_config
PermitRootLogin yes
# PasswordAuthentication no
PasswordAuthentication yes
重启即可使用root账号登录
systemctl restart ssh