Unblock Outgoing SSH Connection

Post Reply
carbar
Junior Member
Posts: 1
Joined: 08 Oct 2018, 16:51

Unblock Outgoing SSH Connection

Post 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
Black Tiger
Junior Member
Posts: 73
Joined: 17 Feb 2009, 14:14
Contact:

Re: Unblock Outgoing SSH Connection

Post 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?
Post Reply