ssh使用来自mac的putty密码login

我想用一个用putty(Win)制作的密钥从Maclogin到服务器。 输出,其中一些如下所示,看起来像它正在尝试,但我没有密码,所以我只是打进入,当dialo框出现,所以我不知道如何让它接受一个空白的密码。 我知道它在我的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). 

您需要将您的Putty私钥(.ppk)转换成类似于标准SSH密钥的东西 – puttygen可以为您做这个(参考此链接 ,或向Google询问puttygen …)

从堆栈溢出这篇文章给出了一个关于使用OSXterminal将您的PEM密钥转换为PPK的答案:

 sudo port install putty puttygen privatekey.ppk -O private-openssh -o privatekey.pem