Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: josephgodwinke on May 28, 2021, 09:27:22 PM

Title: ssh connection issues
Post by: josephgodwinke on May 28, 2021, 09:27:22 PM

I try to connect to another server and copy files with rsync but I get this error

Code: [Select]
ssh: connect to host 123.45.67.89 port 2211: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(226) [Receiver=3.1.2]


ssh port is correct
Title: Re: ssh connection issues
Post by: Igor S. on May 29, 2021, 07:03:29 AM
Are you able to connect via SSH with the data? Probably your server has blocked TCP OUT to port 2211
Try to open the port in /etc/csf/csf.conf => TCP_OUT or try to disabvle firewall and test.
Title: Re: ssh connection issues
Post by: josephgodwinke on May 29, 2021, 09:27:06 AM
Temporary workaround was tunneling ports and agent forwarding. Connected to the remote server for rsync and scp then after I was done I reverted the backup /etc/ssh/sshd_config
Title: Re: ssh connection issues
Post by: josephgodwinke on May 29, 2021, 09:29:18 AM
Are you able to connect via SSH with the data? Probably your server has blocked TCP OUT to port 2211
Try to open the port in /etc/csf/csf.conf => TCP_OUT or try to disabvle firewall and test.

Firewall accepts TCP inbound/outbound connections from port 2211.
Title: Re: ssh connection issues
Post by: Igor S. on June 01, 2021, 09:14:11 AM
On both servers?
Title: Re: ssh connection issues
Post by: josephgodwinke on June 02, 2021, 03:17:32 PM
I fixed this. sshd errors