SFTP - The key format is not a supported format

Error:

Trying to establish a SFTP connection with a key exchange and get this error

com.sshtools.j2ssh.transport.publickey.InvalidSshKeyException: The key format is not a supported format

 

Cause:

The Key used in the Key Manager activity is not OpenSSH compatible

 

Solution:

A) Convert the key to OpenSSH

Use OpenSSH tools to convert the  key to OpenSSH format. You should then be able to use the converted key with j2ssh.

- http://ipswitchft.force.com/kb/articles/FAQ/How-to-convert-an-SSH-key-to-other-formats

 

B) Generate a new key pair using j2ssh or OpenSSH tools

You can also generate a new key pair using OpenSSH tools (ssh-keygen) and then upload the public key to the server

- https://qualysguard.qualys.com/qwebhelp/fo_help/authentication/generating_ssh_key_pair.htm

Have more questions? Submit a request

0 Comments

Article is closed for comments.