Centos 6 cannot ssh externally?
Dear All,
I have just installed centos 6. I would like to ssh to the machine. So I have checked ssh service is running, firewall allows port 22, iptables also allow port 22 and also disabled SELinux. With all these I cannot still ssh from externally. But locally when I just telnet 192.168.1.5 22 I get the ssh message. Why I cannot do it externally even though I have set the port forwarding to the machine? Any steps I am missing? |
Start the sshd service.
|
Dear Snowpine,
I have checked the status service sshd status it shows me running with a particular pid. |
What is the error message?
|
Dear Snowpine,
When I telnet from local ip is ok, from eternal ip it like trying to connect and just close no error message. |
Are you trying to connect from the outside from your LAN, or do you connect from the inside to the outside and back in?
Some routers don't support this. Any error messages? Kind regards |
|
Dear Repo,
Yes I trying to connect back into the LAN using dynamic ip of the LAN. But is still the same connection just trying to go outside and come back in.Where to check the edit message it just close the terminal? |
Try from the outside.
You can use an online portscanner to see if por 22 is answerig. http://nmap-online.com/ Kind regards |
Dear Repo,
Below is the results. So what does this translates into? Nmap Options: -p22-23 -T4 -sS 124.82.40.118 Starting Nmap 4.75 ( http://nmap.org ) at 2012-01-03 18:47 Central Europe Standard Time Note: Host seems down. If it is really up, but blocking our ping probes, try -PN Nmap done: 1 IP address (0 hosts up) scanned in 2.62 seconds |
Quote:
Try to use the Code:
-PN Kind regards |
Dear Repo,
The latest results is below Nmap Options: -p22-23 -PN -T4 -sS 124.82.40.118 Starting Nmap 4.75 ( http://nmap.org ) at 2012-01-03 18:56 Central Europe Standard Time Interesting ports on 82.124.in-addr.arpa.tm.net.my (124.82.40.118): PORT STATE SERVICE 22/tcp filtered ssh 23/tcp filtered telnet |
Could it be your provider is blocking ports?
Try to set ssh to another port (2222 or something higher) Kind regards |
Dear Repo,
I do not think my provide is blocking this port. So you want me to change the sshd to listen to different port is it? |
Quote:
Don't forget the forwarding on the router, and to adjust the firewall if needed. Kind regards |
All times are GMT -5. The time now is 11:01 PM. |