I've been trying to setup port forwarding to do pop over. Here's my
system:

* RedHat 6.2
* OpenSSH 2.2.-0-2 (from the RedHat downloads page)
 - it's a source distribution that I've compiled myself

My remote POP server is a basic POP3 server.

I've followed the HOWTO, and the following works:

% ssh popserver -L 11110:popserver:110 -f sleep 10
% telnet localhost 11110
[lots of pop server stuff which I can then user/pass etc]

It is working encrypted because I sniffed the packets using Ethereal
(http://www.zing.org/) which showed the expectd "garbage".

I then attempted to add it to my fetchmailrc:

poll localhost via localhost port 11110
preconnect "ssh popserver -L 11110:popserver:110 -f -q sleep 50"
password AsIfIwouldTellYou

I get errors from this. I've changed the -q to a -v and sometimes it
appears as though ssh isn't allowing the TCP forwarding, but it actually
looks as though the following occurs:

* ssh starts authentication
* before ssh gets to authenticate anything, fetchmail telnets to the
local port
* because ssh hasn't authenticated anything yet, it fails (and doesn't
retry)
* ssh finally works out what it's supposed to do and starts to forward
the port

After running fetchmail manually, it still doesn't allow telnet
localhost 11110 though....and it often leaves the ssh process in the
background....

Does anyone have any idea of what may be happening here?

DL
-- 
Did you ever think of me as your best friend?
Did I every think of you? I'm not complaining....
I'll never try to feel, to feel this vibration
I'll never try to reach, to reach your Eden!

Reply via email to