有时我需要 ssh 到一个新的远程服务器并立即修复某些东西,而无需 ssh 试图在我的主机上找到任何私钥。它通常在此时停止:
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
Credentials cache file '/tmp/blah' not found
debug1: Unspecified GSS failure. Minor code may provide more information
Credentials cache file '/tmp/blah2' not found
debug1: Unspecified GSS failure. Minor code may provide more information
Run Code Online (Sandbox Code Playgroud)
有没有一种方法可以指定 ssh 立即进行基于密码的身份验证?
bre*_*ent 10
ssh -o PreferredAuthentications=password,keyboard-interactive,gssapi-with-mic,hostbased,publickey user@host.example.com
Run Code Online (Sandbox Code Playgroud)
~/.ssh/config如果您不希望对任何允许密码访问的服务器进行密钥访问,也可以使用此设置。
| 归档时间: |
|
| 查看次数: |
536 次 |
| 最近记录: |