SFTP invalid key

Questions about Cobian Reflector
Post Reply
Land
Posts: 1
Joined: 21 Nov 2022, 16:08

SFTP invalid key

Post by Land »

Hello!

OS: Windows 11 22H2

I have a backup that moves everything from a folder to a local NAS and the SSH keys on it and my local computer are both OpenSSH RSA keys. I can successfully SSH to it and use FileZilla to make sure the sftp is working; however, when I try to connect using Cobain reflector it says invalid key format. Why do you think this is happening?
Thanks.

P.S. I have also tried to regenerate the SSH keys and it still says invalid.
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: SFTP invalid key

Post by cobian »

OpenSSH has fairly recently created a new private key format called RFC4716 (it isn’t a standard but is derived from this public key standard). That’s their default format now, and you can recognise it by the file header:

—–BEGIN OPENSSH PRIVATE KEY—–

There is no support yet for this format. You can convert from the new format to the old format PEM keys using ssh-keygen. The command below will do the conversion (overwriting the original file!):

ssh-keygen -e -f openSshKeyNew -m PEM -p

You can also convert to the old PEM format using PuTTYgen.
--
Luis Cobian
Cobian Backup's creator
Post Reply