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).
link|improve this question

64% accept rate
feedback

1 Answer

up vote 2 down vote accepted

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

link|improve this answer
Can I still use it to login with putty after I convert it. – mike628 Jul 7 '11 at 18:29
You will wind up with two copies of the "same" key (in different file formats) - a .ppk key used by putty, and a (more standard) OpenSSH key usable by the ssh client on your Mac, Linux boxen, BSD machines, etc. – voretaq7 Jul 7 '11 at 18:35
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.