Changing port 22 still not working after editing sshd
Posted: Fri Oct 09, 2015 5:08 pm
Hi everyone,
I tried changing the port no. to 3133 on the sshd and restarted sshd. Also added on the iptables (restarted the server-added iptable) however I still can't access that port and only port 22.
]# netstat -nltp | grep sshd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LIST EN 4344/sshd
tcp 0 0 :::22 :::* LIST
Firewall
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 3133 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
# iptables -L
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:prism-deploy <--3133 edited in sshd
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh <---original port 22
Any thoughts on this? Thanks!
Goutodial 2.1
single server
quadcore 4 gig mem
VERSION: 2.4-309a
BUILD: 110430-1642
I tried changing the port no. to 3133 on the sshd and restarted sshd. Also added on the iptables (restarted the server-added iptable) however I still can't access that port and only port 22.
]# netstat -nltp | grep sshd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LIST EN 4344/sshd
tcp 0 0 :::22 :::* LIST
Firewall
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 3133 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
# iptables -L
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:prism-deploy <--3133 edited in sshd
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh <---original port 22
Any thoughts on this? Thanks!
Goutodial 2.1
single server
quadcore 4 gig mem
VERSION: 2.4-309a
BUILD: 110430-1642