Re: ssh to a non-standard port on remote host
From: Bas Keur (viper_at_dmrt.net)
Date: 07/30/04
- Previous message: M.K.: "Re: security question?"
- In reply to: wonder: "ssh to a non-standard port on remote host"
- Next in thread: Tim Hammerquist: "Re: ssh to a non-standard port on remote host"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: M.K.: "Re: security question?"
- In reply to: wonder: "ssh to a non-standard port on remote host"
- Next in thread: Tim Hammerquist: "Re: ssh to a non-standard port on remote host"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|