'mussh' 不要求输入密码

'mussh' 不要求输入密码

更新: 如果 mussh 已失效/无法修复,请建议用什么来替代它们。我测试了 pssh(无法正常工作并返回未记录状态)、dsh(不在公共存储库中)

我想连接到几台机器来验证我是否可以登录。有些 cyberarch 的东西限制了我的选择,但应该可行的想法是将密码读取到环境变量中,然后使用sshpassmussh。但我发现,即使我mussh单独使用登录到我的本地主机,它也根本不要求输入密码。有什么想法为什么或我能用它做什么?

ssh mmucha@localhost 'echo is alive'
mmucha@localhost's password: <me entering password here>
is alive

现在通过mussh

mussh -A -b -m 5 -h mmucha@localhost -c 'echo is alive'
mmucha@localhost: mmucha@localhost: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

选项顺序为“无 ssh 代理”、“无主机输出混合”、“并行性”、“主机规范”、“要执行的命令”。

启用调试(我省略了开头):

localhost: debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
localhost: debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic,password
localhost: debug3: preferred gssapi-with-mic,publickey
localhost: debug3: authmethod_lookup gssapi-with-mic
localhost: debug3: remaining preferred: publickey
localhost: debug3: authmethod_is_enabled gssapi-with-mic
localhost: debug1: Next authentication method: gssapi-with-mic
localhost: debug1: Unspecified GSS failure.  Minor code may provide more information
localhost: No Kerberos credentials available (default cache: KCM:)
localhost: 
localhost: debug1: Unspecified GSS failure.  Minor code may provide more information
localhost: No Kerberos credentials available (default cache: KCM:)
localhost: 
localhost: debug2: we did not send a packet, disable method
localhost: debug3: authmethod_lookup publickey
localhost: debug3: remaining preferred: 
localhost: debug3: authmethod_is_enabled publickey
localhost: debug1: Next authentication method: publickey
localhost: debug1: Offering public key: /home/mmucha/.ssh/id_rsa RSA SHA256:e7mLi9WbP5ghs8J5nYWK317OihY9g6jl+iUnFTN+0GQ explicit agent
localhost: debug3: send packet: type 50
localhost: debug2: we sent a publickey packet, wait for reply
localhost: debug3: receive packet: type 51
localhost: debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
localhost: debug1: Offering public key: keyForAlfonz19@github RSA SHA256:+BmoR+Sw2kgh7Fygoi99to8B/RrrF/QKL2GO4+xP3SI agent
localhost: debug3: send packet: type 50
localhost: debug2: we sent a publickey packet, wait for reply
localhost: debug3: receive packet: type 51
localhost: debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
localhost: debug2: we did not send a packet, disable method
localhost: debug1: No more authentication methods to try.
localhost: mmucha@localhost: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

当我检查 ssh 的相同调试时,行Authentications that can continue变小,而只剩下密码,然后系统询问我。而对于mussh此行,仍然显示相同的方法列表,这有点奇怪。

相关内容