在 mac 上使用 putty key 进行 ssh 登录

mik*_*628 2 mac ssh putty keys

我正在尝试使用我用 putty (Win) 制作的密钥从 Mac 登录服务器。下面显示的一些输出看起来像是正在尝试,但我没有密码,所以我只是在对话框出现时按 Enter 键,所以我不知道如何让它接受空白密码。我知道它可以在我的 Win 机器上运行,无需密码或密码短语。

debug1: Authentications that can continue: publickey
debug3: start over, passed a different list publickey
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /Users/michael/.ssh/b.ppk
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
debug2: bad passphrase given, try again...
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
debug2: bad passphrase given, try again...
debug2: no passphrase given, try next key
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey).
Run Code Online (Sandbox Code Playgroud)

vor*_*aq7 5

您需要将 Putty 私钥 (.ppk) 转换为类似于标准 SSH 密钥的东西 -puttygen可以为您执行此操作(参见此链接,或向 Google 询问 puttygen...)