编辑ssh配置文件,有两个ssh_config和sshd_config,一定要记得是sshd的那个

vi /etc/ssh/sshd_config

是否允许root账户直接登录

PermitRootLogin no/yes

是否允许密码方式登录

PasswordAuthentication no/yes