OpenSSH Public Keys

When providing the public key to Thru Client Endpoints, Thru’s SFTP Server requires OpenSSH Keys.

Most SSH keygens can convert an RSA public key to an OpenSSH Public Key.

On Linux it seems when using ssh-keygen you also need to define that the key needs to be in a SSH2 format.

Example : After creating the keyset.

ssh-keygen -t rsa -b 2048

Generating public/private rsa key pair.
Enter file in which to save the key (/home/exampleuser/.ssh/id_rsa):
/home/exampleuser/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/exampleuser/.ssh/id_rsa.
Your public key has been saved in /home/exampleuser/.ssh/id_rsa.pub.

The key fingerprint is:
SHA256:qlkRVWtfk3U3pz+DUlxd3DG5d2kdOjkjsbtBejycHx8 exampleuser@ubuntu-getest

The key's randomart image is:
+---[RSA 2048]----+
| ... *%|
| . o. .*X|
| . o ooB =|
| . . =.B.*+|
| . S =.=.=o+|
| o . O.. Eo|
| o . = o .|
| + . . . |
| o |
+----[SHA256]-----+

Run the following command to convert the public key to a format Thru can use.

ssh-keygen -e -f /home/exampleuser/.ssh/id_rsa.pub > id_rsa_ssh2.pub