-1

我的 ssh 配置是 'PasswordAuthentication no' 为什么 MobaXterm 可以登录?

我想知道 MobaXterm 使用什么技术通过用户名和密码登录 SSH?我可以确认我的 '/etc/ssh/sshd_config' 是

 PasswordAuthentication no
 PermitRootLogin no

我没有在 MobaXterm 中使用任何私钥。

#To disable tunneled clear text passwords, change to no here!
PasswordAuthentication no
#PermitEmptyPasswords no

我尝试使用putty,它也可以通过密码登录。这个功能来自这个对话框吗? 在此处输入图像描述

login as: root
Using keyboard-interactive authentication.
Password:
Last failed login: Fri Apr 26 09:04:12 UTC 2019 from ipxxxx on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Fri Apr 26 08:58:44 2019 from ipxxxx 
09:04:29 root@ aa:~>
4

1 回答 1

0

#是一个注释字符,意思是

# PasswordAuthentication no

实际上什么都不做。

此外,您可以启用日志记录

LogLevel VERBOSE

这将使调试您想要做的事情变得更容易。

于 2019-04-26T06:08:10.363 回答