linux 从xshell默认密码登陆

password authentication验证方式,对于一些SSH clients (例如: SecureCRT)允许使用者「储存」密码,那么如果你选择了记忆密码,就可以直接登录而不需要输入密码。freebsd默认情况下是keyboard-interactive authentication模式的,如果要使用password authentication方式,可以修改/etc/ssh/sshd_config文件,

默认情况/etc/ssh/sshd_config文件全部为注释掉的,所以查找

PasswordAuthentication no

改为

PasswordAuthentication yes

然后再找到

PermitRootLogin = no

改为,允许root用户直接登陆

PermitRootLogin = yes

重启SSHD服务即可: service sshd restart

你可能感兴趣的:(linux 从xshell默认密码登陆)