Problem creating SSH connection to replicate from Truenas to Truenas

Hello everyone!

I am a novice user but I have been making my way thanks to manuals and the forum, but I have reached a dead end with an issue because I can’t get it to work.

I have two Truenas Core systems and want to replicate one on the other. I am going to list the (simple) steps taken so that the error can be easily detected:

1- I open port 22 on the destination Truenas router
2- I turn on the SSH service on both Truenas
3- I create the SSH key pair in the source Truenas and copy the public key to the root user of the destination truenas
4- In the truenas origin of the replication, I create an SSH connection in manual mode (in semi-automatic mode it does not accept the domain name of my destination server), I put the root user, the private key that I created in the previous point and where It says “remote host key” I don’t know what to put. And if I hit “discover host key”, after a few seconds thinking, I get an error.

According to what I have been able to read, there would be a way through the shell on the target machine to find out that “host key” but I have not seen it clear how to do it.

So, I pray that someone will illuminate my darkness and of course I thank you in advance

Both system are Truenas Core 13.0-U6.2

For the Remote Host Key, I believe the command is:

 ssh-keyscan -t rsa destination_ip

I’m assuming you have already confirmed both systems can connect to one another, networking and such is correct.

1 Like

Hello, thanks for the response. With that I was able to obtain the server key. I kept wondering how it is possible that I scanned the IP and obtained the key and then with the “discovery” button I did not succeed… Then I realized that I was not entering the host name correctly. Here, the “https://” must be omitted. Thank you very much for the solution and have a good day.

1 Like