can't seem to get SSH to work

Jorge Fábregas jorge.fabregas at gmail.com
Sat Jan 11 22:22:47 UTC 2014


On 01/11/2014 06:13 PM, John Aldrich wrote:
> What do I need to do in order to open a port for SSH (non-standard port, btw.)

Assuming you already performed the change in /etc/ssh/sshd_config (and
restarted the service) you should check the current status of your firewall:

# firewall-cmd --list-all

Make sure your non-standard port is there. If not you may add it with:

# firewall-cmd  --add-port=7777/tcp  (to change it on running system)
# firewall-cmd --permanent ---add-port=7777/tcp (make it permanent)

...assuming 7777 is your non-standard port.

Also, if you have SELinux enabled (which you should) you must allow it
there:

# semanage port -a -t ssh_port_t -p tcp 7777

Double-check with:

# semanage port -l | grep ssh

HTH,
Jorge


More information about the users mailing list