Linux 禁止root直接登录,禁止密码登录
编辑ssh配置文件,有两个ssh_config和sshd_config,一定要记得是sshd的那个
vi /etc/ssh/sshd_config
是否允许root账户直接登录
PermitRootLogin no/yes
是否允许密码方式登录
PasswordAuthentication no/yes
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。
编辑ssh配置文件,有两个ssh_config和sshd_config,一定要记得是sshd的那个
vi /etc/ssh/sshd_config
是否允许root账户直接登录
PermitRootLogin no/yes
是否允许密码方式登录
PasswordAuthentication no/yes
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。
评论已关闭