允许用户远程密码登陆 centos

sudo vi /etc/ssh/sshd_config
PasswordAuthentication yes
service sshd restart

允许用户远程密码登陆 ubuntu

vi /etc/ssh/sshd_config
PermitRootLogin yes
service sshd restart