Re: ssh to a non-standard port on remote host

From: Bas Keur (viper_at_dmrt.net)
Date: 07/30/04

  • Next message: Tim Hammerquist: "Re: ssh to a non-standard port on remote host"
    Date: Fri, 30 Jul 2004 14:39:24 +0200
    
    

    | I tried to ssh to a non-standard port 2222 on a remote sshd host.
    | The sshd remote host is installed in an OpenBSD 3.5 box and standard
    | port is 22. Even so, the PF firewall is configured to forward in-coming
    | packet on port 2222 to an internal server on port 22.
    | But the connection request is refused:
    |
    | root@fbsd [4:38pm] [/etc/ssh]# ssh a.b.c.d -p 2222
    | ssh: connect to host a.b.c.d port 2222: Connection refused
    |
    | What can I do to fix this issue? so that I can ssh to a non-standard
    | port on the remote openbsd box which will forward my traffic to the
    | remote internal server on port 22?
    |
    | thanks
    | sam

    Should work, i'm doing it myself on a daily basis.
    Try flushing the rules to see if you if you realy
    didn't block it by any way.
    pfctl -F rules (Keeps the nat rules)
    Try to telnet to that port see if you get an sshd banner.
    If not then your natting is wrong.

    -- 
    ______________
    Bas Keur
    

  • Next message: Tim Hammerquist: "Re: ssh to a non-standard port on remote host"

    Relevant Pages

    • Re: Oracle 9i - Putty - tnsping works - connection does not!
      ... impression that 127.0.0.1 is always local host, ... Well, under certain circumstances it can be "remote machine", ... SSH tunneling OP tries to use is one bold example. ... To your connections on local TCP port 1500, ...
      (comp.databases.oracle.server)
    • Re: Unable to Connect to Server/Client Desktop using RWW
      ... Port 4125 only needs to be forwarded to the external NIC IP address on your ... SBS server. ... When a remote user cannot connect, asre there any errors listed in the event ... logs of the SBS server or of the target LAN workstation? ...
      (microsoft.public.backoffice.smallbiz)
    • Re: REMOTE DESKTOP NOT WORKING ANY LONGER PLEASE HELP!
      ... The host is a vista machine and it is located at my house. ... the port in the registry and also the firewall exception as well. ... centrally managed GPO which disables Remote Desktop connections. ...
      (microsoft.public.windows.terminal_services)
    • Re: Remote Desktop
      ... I've gone to http://www.canyouseeme.org on the remote computer and it can ... Not sure if the modem is actually a router. ... As for port forwarding in my router, I've typed in 3389 for the ... Al Jarvi (MS-MVP Windows Networking) ...
      (microsoft.public.windowsxp.network_web)
    • Re: Question concerning remote port-forwarding with SSH
      ... > I have difficulties to find out when I should use SSH remote port-forwarding e.g. ... Let's say I have an interior host and a perimeter ... initiate from my desktop effectively a port forwarding ...
      (comp.security.ssh)