Hi!

I was wondering if I could get away with using my already working OpenSSL 
private/public key pair with OpenSSH, so I wouldn't need to create a new one 
with ssh-keygen (yes, this is just for plain convenience :). But unfortunately 
I can't get it to work. I've created a public key from my existing OpenSSL rsa 
key with `openssl rsa -in privkey.key -pubout` and copied it to the 
~/.ssh/authorized_key file. When trying to connect with `ssh -l user -i 
privkey.key host` I'm getting: "Permission denied (publickey)." on the client, 
and:
sshd[6689]: error: buffer_get_string_ret: bad string length 813801264
sshd[6689]: error: key_from_blob: can't read key type
sshd[6689]: error: key_read: key_from_blob MIGqGSIb[..."pubkey"...] failed
on the server.

Is this possible at all?

Daniel

-- 
LEVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1

Reply via email to