unable to connect to ssh server, even though port 22 is forwarded

Discussion in 'Linux Networking' started by rig9919, Dec 29, 2012.

  1. rig9919

    rig9919 Guest

    I am testing a ssh server by attempting to connect to it via its public IP address. For some reason 'ssh -p 22' is giving me a connection refused error. The port is definitely open and forwarded according to canyouseeme.org and I am even able to connect with http://www.serfish.com/console/.
    rig9919, Dec 29, 2012
    1. Advertisements

  2. rig9919

    rcjmack Guest

    iptables could be the cause of your problems.
    rcjmack, Dec 29, 2012
    1. Advertisements

  3. Hello,

    a écrit :
    Where are you trying to connect to this server from ?
    Is it from a machine on the same network behind the same NAT box ?
    Pascal Hambourg, Dec 29, 2012
  4. J G Miller a écrit :
    AFAIK, the "connection refused" error is at the TCP level, not at the
    SSH level. You would get the same error with 'telnet 22'.
    Pascal Hambourg, Dec 30, 2012
  5. No; ECONNREFUSED is at a lower level than that, much as Pascal said.
    Richard Kettlewell, Dec 30, 2012
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.