ubuntu允许root远程登陆sftp
vim /etc/ssh/sshd_config
# PermitRootLogin Without-password
PermitRootLogin yes
# PasswordAuthentication no
PasswordAuthentication yes
systemctl restart ssh
vim /etc/ssh/sshd_config
# PermitRootLogin Without-password
PermitRootLogin yes
# PasswordAuthentication no
PasswordAuthentication yes
systemctl restart ssh