Page 1 of 1

Unblock Outgoing SSH Connection

Posted: 08 Oct 2018, 17:07
by carbar
Hi

I want to make a ssh connection from a VPS (centos 7 & CSF)
But it seems that csf is blocking the ssh port (not 22)

ssh user@xxx.xxx.xxx.xxx -p nnn -vvv
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 58: Applying options for *
debug2: resolving "xxx.xxx.xxx.xxx" port nnn
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to xxx.xxx.xxx.xxx [xxx.xxx.xxx.xxx] port nnn.
debug1: connect to address xxx.xxx.xxx.xxx port nnn: Connection refused
ssh: connect to host xxx.xxx.xxx.xxx port nnn: Connection refused

SSH connection works after disabling csf with (csf -x) which is not what I desire.
How can I fix this problem?
How can I

Re: Unblock Outgoing SSH Connection

Posted: 13 Oct 2018, 02:45
by Black Tiger
I have no issues with this.
You did restart sshd after changing the port and also added the custom port in the tcp_in and tcp_out in csf.conf and restarted csf in the receiving server?