SFTP backup - connection terminated by client

Status
Not open for further replies.

CTG2020

Bronze Partner
Basic Certified
Joined
Feb 13, 2020
Messages
30
Reaction score
4
Hello,

3CX Hosted on a VPS with SFTP backup server on prem.

I've setup a SFTP server with access to only the /home/<username>/3CX_Backup path for a specified instance. However when setting up the SFTP details and hitting OK the window closes as it normally does and a loading bar on the top shows up and disappears and the folder is empty. On checking the log on the SFTP server the following messages are displayed:

Aug 11 09:21:44 xxxx sshd[64592]: Accepted password for <username of SFTP account> from <Public IP of 3CX instance> port 32787 ssh2
Aug 11 09:21:44 xxxx sshd[64592]: pam_unix(sshd:session): session opened for user <username of SFTP account> by (uid=0)
Aug 11 09:21:44 xxxx systemd: pam_unix(systemd-user:session): session opened for user <username of SFTP account> by (uid=0)
Aug 11 09:21:44 xxxx systemd-logind[1125]: New session 5252 of user <username of SFTP account>.
Aug 11 09:21:45 xxxx sshd[64685]: Received disconnect from <Public IP of 3CX instance> port 32787:11: Connection terminated by the client.
Aug 11 09:21:45 xxxx sshd[64592]: pam_unix(sshd:session): session closed for user <username of SFTP account>
Aug 11 09:21:45 xxxx systemd-logind[1125]: Removed session 5252.

I've tested the connection with FileZilla on an external device with the same credentials and can connect without issue.

If you could please assist, thanks!
 
Try connecting through filezilla from a computer you've never connected to the server from before on your mobile hotspot, see if it fails. I suspect you have authorised your private key for your computer but not the 3cx server. You'll probably need to add it to authorized_keys. Either that or a firewall issue but the error is more likely a key error
 
Thanks for your reply, interestingly the scheduled back up ran last night without issue!
 
  • Like
Reactions: Grant Moxom
Status
Not open for further replies.

Forum statistics

Threads
111,956
Messages
589,927
Members
164,858
Latest member
MichaelRussell3