ssh port redirection ?

Bob Bell bobbell at zk3.dec.com
Wed Sep 25 15:47:59 EDT 2002


On Wed, Sep 25, 2002 at 03:40:11PM -0400, Bob Bell <bobbell at zk3.dec.com> wrote:
> On Wed, Sep 25, 2002 at 03:36:21PM -0400, plussier at mindspring.com <plussier at mindspring.com> wrote:
> > I've got plenty open, but it doesn't seem to be working the way I 
> > expect it to (of course, maybe my expectations are out of line :)
> > 
> > On tater:
> > 
> > 	pll at tater:~$ ssh taz -R 8110:199.174.114.33:110
> > 	# pll at taz:/home/pll[1001]
> > 	$ 
> > 	
> > On tater in another xterm:
> > 
> > 	pll at tater:~$ fetchmail -vc lanminds.com --port 8110 --protocol pop3
> > 	Enter password for pll at lanminds.com: 
> > 	fetchmail: 5.9.11 querying lanminds.com (protocol POP3) at Wed Sep 25 15:29:44 2002: poll started
> > 	fetchmail: couldn't find canonical DNS name of lanminds.com
> > 	fetchmail: 5.9.11 querying lanminds.com (protocol POP3) at Wed Sep 25 15:30:24 2002: poll completed
> > 	fetchmail: normal termination, status 11
> 
> You want to connect to port 8110 of taz, not of the "real" POP server.

Oops, I might have overlooked the more obvious point: you switched from
-L to -R semantics without me noticing.  As has been mentioned, try
using -L as follows:

    ssh taz -L 8110:199.174.114.33:110

and

    fetchmail -vc localhost --port 8110 --protocol pop3

You could use 'ssh -N' if you are using ssh v2.

-- 
Bob Bell <bobbell at zk3.dec.com>
-------------------------------------------------------------------------
 "Beware of the above code; I have only proved it correct, not tried it."
   -- Donald Knuth, famous computer scientist



More information about the gnhlug-discuss mailing list