Transfer of SSH Public Key

Hello,

I want to connect my ElectricEel-24.10.2.1 to a Hetzner Storage Box. For the SSH connection I have already created a SSH Keypair as well as a SSH Connection in the Web UI under “Credentials > Backup Credentials”. For the SSH Connection TrueNAS was able to discover the “Remote Host Key”.

But how can I now transfer the Public Key from TrueNAS via SSH to my Hetzner server?

  • Can this transfer be done via the Web UI?
  • Do I have to use ssh-copy-id in the console? But if so, how can I select the key that shall be transferred, where does TrueNAS store the key files?
  • Isn’t there a simple solution on TrueNAS to create a key pair and transfer the public key to another Non-TrueNAS machine via SSH?

My feeling is that I am a but too stupid for the TrueNAS Web UI :tired_face:

Thanks a lot in advance,

Thomas

I wouldn’t expect so.

I doubt it; there would be way too much variability among the remote servers to allow for this.

What’s wrong with "copy the public key and paste it into authorized_keys?

Thanks for the hint.

Another point came up:
If I am logged in on the TrueNAS console, is it possible to use the SSH Key Pairs that were created via the WebUI to connect e.g. via ssh to the other server? Simply using ssh seems to not work and the .ssh folder seems to be empty.

Any ideas?

I wouldn’t expect so. AFAIK, the key pairs generated via the web UI are used only for the purpose of replication and aren’t otherwise exposed to the user.