Ssh login with putty key from mac

keysmacputtyssh

I am trying to login to a server from a Mac with a key I made with putty (Win). The output, some of which is shown below looks like it is trying , but I dont have a passphrase, so I just hit enter when the dialo box comes up, so I dont know how to get it to accept a blank passphrase. I know it works on my Win machine,no password or passphrase.

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).

Best Answer

You need to convert your Putty Private Key (.ppk) to something resembling a standard SSH key - puttygen can do this for you (cf. This Link, or ask The Google about puttygen...)