On Tue, Nov 20, 2001 at 05:25:47PM +0100, Peter Palmreuther wrote:

> LEM> So SSH tunneling _is_ easier if the machine admin is not
> LEM> cooperative.

> But how would you tunnel a POP3 request through SSH?

ssh remote_user@remote_host -L 7485:remote_host:110

and enter "localhost port 7485" as POP3 server in you mail
client. 7485 can be any number, btw.

If you are using SSH2 protocol, the -N argument can be handy.

(If you are using a non-command-line ssh client or one that doesn't
take the same argument syntax as the UNIX client, check its
documentation)

> SSH opens a remote shell in a secure way. This way you can read your
> mail via command line mailreader _on server_ or even with X-forwarding
> with a GUI one,

X-forwarding is just a special case of port forwarding (with some X
authentication spoofing around). Just forward another port to the POP3
port of the server.

> How shall SSHD know you want to connect to WHAT server on e.g. port
> 110?

the "110" in the command.

if you do ssh user@sshhost -L 7895:pophost:110

communication is encrypted between you and sshhost, but not between
sshhost and pophost (if they are different).

-- 
Lionel Elie Mamane
RFC 1991 (PGP 2.x) 2048 bits Key Fingerprint (KeyID: 20C897E9):
    85CF 986F 263E 8CD0 80FD 4B8C F5F9 C17D
OpenPGP DH/DSS 4096/1024 Key Fingerprint (KeyID: 3E7B4B73):
        9DAD 3131 3ADA F50B D096 002A B1C4 7317 3E7B 4B73

Attachment: msg30519/pgp00000.pgp
Description: PGP signature

Reply via email to