Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-03-2019, 04:22 AM   #1
LQ Newbie
Registered: Jan 2019
Posts: 2

Rep: Reputation: Disabled
Question Custom ssh port not accessible from internet

I have change my shh port to 3579 add the rules in firewall with this command
semanage port -a -t ssh_port_t -p tcp 3579
and this
firewall-cmd --permanent --zone=public --add-port=3579/tcp
after adding those two command it was working fine but after I install PLESK it no longer works now nmap show filtered.


Nmap from remote location

PS. ssh on localhost over 3579 is working
ssh localhost -p 3579
Old 01-03-2019, 05:16 AM   #2
Senior Member
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 4,129

Rep: Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159
What is the firewall’s status right now?
firewall-cmd --get-active-zones
firewall-cmd --zone=public --list-ports
Old 01-03-2019, 07:02 AM   #3
LQ Newbie
Registered: Jan 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
firewall-cmd --get-active-zones
shows plesk and
firewall-cmd --zone=public --list-ports
shows 3579/tcp

The active zone is different right so I added rule in currently active zone
firewall-cmd --permanent --zone=plesk --add-port=3579/tcp
which solves the issue.

Thank. I'm new to linux environment so still learning


firewall, port blocking, ssh access

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] IPtables : ssh port forwarding one port to another port issue routers Linux - Networking 7 08-07-2018 09:41 AM
Way to hide keys in .ssh from login user but still accessible via ssh. MikeyCarter Linux - Software 4 03-29-2018 11:44 AM
Port not accessible from remote machine harshildesai Linux - Server 1 07-17-2009 10:56 AM
svnserve listening, but port not accessible from remote. menphix Linux - Server 4 07-17-2009 10:37 AM
NTFS (winxp) drive is accessible only by root, why NTFS (winxp) drive not accessible Samppa72 Linux - Software 1 07-26-2004 04:13 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration