forwarding ssh requests

Mike Starke plug-discuss@lists.plug.phoenix.az.us
Tue, 20 May 2003 15:12:14 -0500


On Tue, May 20, 2003 at 02:06:40PM -0500, Thomas Cameron wrote:
/_That's what I was going to answer, but I am not getting it to work...
/_
/_[root@mailtest1 root]# iptables -t nat -A PREROUTING -p tcp -d
/_127.0.0.1 --dport 3022 -j DNAT --to-destination 127.0.0.1:22
/_[root@mailtest1 root]# ssh 127.0.0.1 -p 3022
/_ssh: connect to host 127.0.0.1 port 3022: Connection refused
/_

Make sure you do not overlook tcpwrappers. Anytime I see
a ":Connection refused" I get suspicious.

-mike