我有一台目标 BSD 机器,我从 Windows 机器连接到该机器,我复制了由 Putty 生成的公钥和私钥对,并尝试在另一台装有 Mac OS 的笔记本电脑上使用它们。我将密钥复制到 MAC 上的 ~/.ssh/ 文件夹中,但它们无法连接到 BSD 机器。这些是我的日志。
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/username/.ssh/public
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
debug3: Not a RSA1 key file /Users/username/.ssh/public.
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...
debug3: Not a RSA1 key file /Users/username/.ssh/public.
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
debug2: no passphrase given, try next key
我还忘记了什么?提前谢谢
答案1
在 puttygen 中,您可以在 Conversions 中选择一个选项,将密钥导出为 OpenSSH 密钥。您可能想尝试使用此功能将其导出。