Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

i have a target BSD machine where i connect to from my windows box, i copied the public and private key pairs that are generated by putty and i'm trying to use them on a different laptop with Mac OS. I copied the keys to ~/.ssh/ folder here on MAC but they are failing to connect to the BSD machine. these are my logs.

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

What else did i forgot? Thanks in advance

share|improve this question
    
superuser.com/questions/232362/… –  Iain Aug 18 '12 at 18:01

1 Answer 1

In puttygen you have an option in Conversions to export your key to a OpenSSH key. You might want to try export it using this function.

share|improve this answer
    
Unfortunately, I don't have an access to my Windows machine right now. All I have is the usb that contains the public and private keys and macbook, is there any way I can still use these keys to access the target machine? Thanks. –  juan Aug 18 '12 at 13:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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