Cannot Create/Edit existing SSH connection - Spins indefinitely with Please Wait

Letni

Explorer
Joined
Jan 22, 2012
Messages
63
Fresh TrueNAS 13 install with 2x bare metal machines.

Trying to set up SSH Connection between the two and it works using the partial automated wizard.. This will default to ssh port 22, which I'm going through a router I'm going to forward the outisde port 2285 to TrueNAS Port 22.

The partial automation works fine when I have the port forward on 22 on the outside (and temporarily port forward http mgmt), but I go edit the connection (after changing the port forward to 2285), If I edit the entry and hit the save button.. it simply spins with the "Please Wait" pop-up and that will never go away.

This will also happen if I simply try to create my own SSH connection (manually - without partition automation) with an existing SSH keypad (I already have the public key in the "/root/.ssh/authorized_keys).

This seems like a huge bug when trying to set up replication.. does anyone have a workaround?
 

Letni

Explorer
Joined
Jan 22, 2012
Messages
63
Ok it looks like the TrueNAS 13 GA has some GUI issues.. I got this to work by following this process:

  1. Removed all SSH Keypairs / SSH Connections on both source and target machines.
  2. Ensure that SSH is open on alternative (not port 22) port on target machine (via port forwarding)
  3. Go to source TrueNAS Section for SSH Connections and click the Add Button
  4. In the Setup Wizard, Set a name and change the method to Manual (drop down box)
  5. Set the host name (DNS name or IP), and set the alternative TCP port (port 22 default - change if your target machine ssh is reachable on a different port)
  6. Private Key -> Generate new (if you select an existing, it seems to trigger wizard to lock up)
  7. Click the Discover Remote Host Key button (will populate last field if remote SSH port is correct)
  8. Click submit - should save and go away in a few seconds.
  9. Go under SSH Keypair and find newly created Key Pair (should be same name as SSH Connection with the word Key at the end), edit it.
  10. Click in Public Key field (will be populated with public key, use CTRL-A to select entire key, and CTRL-C to copy to clipboard.
  11. Go to the Target TrueNAS root User settings (Accounts->Users->root->edit) using the web GUI.
  12. Paste (CTRL-V) in the Public Key (from the Source TrueNAS - should still be in your clipboard) under the SSH Public Key section and save at the bottom.
  13. Disable SSH allows root login (under the SSH service) if want to secure up the machine
  14. Now you can go to the source machine and create a Rsync or Replication Task and the target datasets should be browsable if you select the remote system and the SSH connection defined on the source.

This still should be investigated why it doesn't work if you pre-create the Keypair ahead of time, or why it also locks up if you go back to edit the SSH Connection (even to just say change the name).

Hope this helps someone else.
 
Last edited:

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
 
Top