1
1
I have a shared hosting account on hostgator.
When i do SSH to that server via Port 2222 then i get
"Connection Refused"
error
P.S:- 2222 is SSH port for shared hosting accounts on hostgator.
Is it because of my ISP blocking this port ?
Is there a way to confirm this ?
on another note :- i am able to ssh on standard port 22 to a VM created on microsoft azure cloud.
P.S: i am a networking noob :-)
UPDATE:-
nmap <server ip address>
It returns below
Host is up (0.078s latency).
Not shown: 989 filtered ports
PORT STATE SERVICE
21/tcp open ftp
25/tcp open smtp
53/tcp open domain
80/tcp open http
110/tcp open pop3
143/tcp open imap
443/tcp open https
587/tcp open submission
993/tcp open imaps
995/tcp open pop3s
3306/tcp open mysql
UPDATE 2:-
i am able to do ssh on hostgator through my azure VM.
so it looks like an issue with my ISP.
also if i do nmap <server ip address>
from azure VM
it returns below
Host is up (0.0061s latency).
Not shown: 976 closed ports
PORT STATE SERVICE
1/tcp filtered tcpmux
3/tcp filtered compressnet
4/tcp filtered unknown
6/tcp filtered unknown
7/tcp filtered echo
9/tcp filtered discard
13/tcp filtered daytime
17/tcp filtered qotd
19/tcp filtered chargen
21/tcp open ftp
22/tcp filtered ssh
25/tcp open smtp
26/tcp open rsftp
53/tcp open domain
80/tcp open http
110/tcp open pop3
143/tcp open imap
443/tcp open https
465/tcp open smtps
587/tcp open submission
993/tcp open imaps
995/tcp open pop3s
2222/tcp open unknown
3306/tcp open mysql
So now this one shows ssh in open port..
1What is the output for
nmap server_ip_address
? – user2196728 – 2014-01-06T20:44:54.127i have updated my question – harrybvp – 2014-01-06T20:56:47.820
And me my answer ;) – user2196728 – 2014-01-06T20:58:18.777
You could try option
-v
to putssh
in verbose mode and get more detailed messages. Multiple-v
parameters increase verbosity. My favorite tool to test port reachability is netcat (nc). – Axel Kemper – 2014-01-06T21:04:29.497check your sshd configuration - needs to specify 2222 as a listen port in the server configuration. You also may have another listener using 2222, perhaps a proxy or NI scanner. You could shut down SSH and see if there's still something on the port. – lonstar – 2014-01-06T21:42:17.933
1Given the suspicion that your ISP is blocking port 2222, you could try a service like ismyportopen.com: insert your server's IP address, and then ports 22 and 2222. This will reach your server from outside your ISP network. – MariusMatutiae – 2014-01-07T02:22:27.363
@MariusMatutiae i tried ismyportopen.com and it says Port 2222 is opened on my hostgator server..also i am able to ssh on hostgator server through another machine (azure VM) ...so this proves My ISP has blocked this 2222 Port..I will check with my ISP – harrybvp – 2014-01-07T13:49:18.597