[prev in list] [next in list] [prev in thread] [next in thread]
List: fedora-list
Subject: Re: can't seem to get SSH to work
From: John Aldrich <jmaldrich () yahoo ! com>
Date: 2014-01-11 23:45:58
Message-ID: 2689077.v2jN5mqEm2 () slave1
[Download RAW message or body]
On Sat January 11 2014 6:22:47 PM Jorge Fábregas wrote:
> 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
>
OK, the non-standard port is added to the firewall and I've double-checked that
SELinux is set to allow the port (it is.) I'm still getting "connection
refused" immediately upon trying to connect VIA SSH. :(
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic