Activate flash backup = Unable to connect to backup.unraid.net:22


Recommended Posts

16 hours ago, ljm42 said:

This means that some sort of firewall on your network is preventing the server from connecting to backup.unraid.net on port 22. You'll need to unblock that on your firewall in order to use the automated flash backup feature.

I do not have any rules that reject outbound ssh connections, or is it inbound?

if i try ssh backup.unraid.net in terminal i get permission denied, not time-out

image.png.c62377d96d9facf23703825e686b0010.png

 

Do i have to open port 22 inbound?

Link to comment
On 10/8/2022 at 7:10 AM, JsonC said:

I do not have any rules that reject outbound ssh connections, or is it inbound?

if i try ssh backup.unraid.net in terminal i get permission denied, not time-out

image.png.c62377d96d9facf23703825e686b0010.png

 

Do i have to open port 22 inbound?

 

No, no inbound ports required.

 

Please open a web terminal and run these two commands:

timeout 5 bash -c "</dev/tcp/backup.unraid.net/22"
echo $?

 

 

Link to comment

I am pretty confused by the fact that this works:
  ssh backup.unraid.net
and this doesn't:
  timeout 5 bash -c "</dev/tcp/backup.unraid.net/22"
  echo $?

 

The only thing I can think of is that the bash command isn't using ssh and maybe your firewall is blocking it because it expects port 22 traffic to be ssh. What firewall are you using, and can you check the logs to see what outgoing traffic is being blocked when you type that bash command?

Link to comment
  • 3 months later...
  • 1 year later...
On 2/7/2023 at 1:30 AM, ljm42 said:

 

Please open a web terminal and run this command, then paste the results back here:

ssh -v -T [email protected]

 

 

 

hi. im trying to activate the flash backup and it just says "Activating" and has been so for 10 mins. Is it normal?

 

This unraid is not behind my opnsense router. It has a clear path to the wan router and out to Internet.

 

My output for the above command looks ok.

 

:~# ssh -v -T [email protected]
OpenSSH_9.3p2, OpenSSL 1.1.1v  1 Aug 2023
debug1: Reading configuration data /root/.ssh/config
debug1: /root/.ssh/config line 1: Applying options for backup.unraid.net
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to backup.unraid.net [54.70.72.154] port 22.
debug1: Connection established.
debug1: identity file /root/.ssh/unraidbackup_id_ed25519 type 3
debug1: identity file /root/.ssh/unraidbackup_id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.3
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.9p1 Ubuntu-3ubuntu0.6
debug1: compat_banner: match: OpenSSH_8.9p1 Ubuntu-3ubuntu0.6 pat OpenSSH* compat 0x04000000
debug1: Authenticating to backup.unraid.net:22 as 'git'
debug1: load_hostkeys: fopen /root/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: [email protected]
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none
debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:hz1eeL5LRKm5o+ONM7NbW9AG0Eck/pZTP+0lMtqgQ3I
debug1: load_hostkeys: fopen /root/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host 'backup.unraid.net' is known and matches the ED25519 host key.
debug1: Found key in /root/.ssh/known_hosts:3
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /root/.ssh/unraidbackup_id_ed25519 ED25519 SHA256:qyhFWkQOH0AxieL4NTj4xP4LDbpsvNwgYT0j2osJKyI explicit
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com>
debug1: kex_input_ext_info: [email protected]=<0>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /root/.ssh/unraidbackup_id_ed25519 ED25519 SHA256:qyhFWkQOH0AxieL4NTj4xP4LDbpsvNwgYT0j2osJKyI explicit
debug1: Server accepts key: /root/.ssh/unraidbackup_id_ed25519 ED25519 SHA256:qyhFWkQOH0AxieL4NTj4xP4LDbpsvNwgYT0j2osJKyI explicit
Authenticated to backup.unraid.net ([54.70.72.154]:22) using "publickey".
debug1: channel 0: new session [client-session] (inactive timeout: 0)
debug1: Requesting [email protected]
debug1: Entering interactive session.
debug1: pledge: filesystem
debug1: client_input_global_request: rtype [email protected] want_reply 0
debug1: client_input_hostkeys: searching /root/.ssh/known_hosts for backup.unraid.net / (none)
debug1: client_input_hostkeys: searching /root/.ssh/known_hosts2 for backup.unraid.net / (none)
debug1: client_input_hostkeys: hostkeys file /root/.ssh/known_hosts2 does not exist
debug1: client_input_hostkeys: no new or deprecated keys from server
debug1: Remote: /home/git/.ssh/authorized_keys:10797: key options: command
debug1: Remote: /home/git/.ssh/authorized_keys:10797: key options: command
debug1: pledge: fork
You have successfully authenticated over SSH but interactive shells are not supported here.
Unraid Flash Backup should have no issues connecting. Goodbye.
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype [email protected] reply 0
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 3388, received 3824 bytes, in 0.7 seconds
Bytes per second: sent 5087.3, received 5742.0
debug1: Exit status 128

 

Link to comment