我的服务器上的 SSHD 遇到了一些问题。我正在尝试设置无密码(pub/pv 密钥)身份验证。它适用于我的其他服务器,但不适用于此服务器。SSHD 代理将我的公钥添加到“授权密钥”中,但仍要求输入密码。我试图完全禁用密码身份验证(在 /etc/ssh/sshd_conf 中)以查看会发生什么,但我得到了“错误的 pub 密钥”。
pub 密钥由客户端发送 (ssh -vvv):
----
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/me/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /home/me/.ssh/id_dsa
----
## Next key (rsa was the good one)
Run Code Online (Sandbox Code Playgroud)
我检查了“sshd_config”和“.ssh”权限现在我只想能够看到服务器端发生了什么。我检查了我的“/var/log/auth”和“/var/log/secure”,但这里没有文件。
在配置中,我配置日志如下:
SyslogFacility AUTH
LogLevel DEBUG
Run Code Online (Sandbox Code Playgroud)
如何在不使用深度网络嗅探的情况下调试我的情况?是否可以将 Sshd 输出重定向到日志文件或 std ?
谢谢
ssh sshd public-key-encryption private-key password-protection