port-forwarding via ssh

Kinniken

Registered
I know this should be in the UNIX forum, but it simply gets too little traffic...

so here is my problem:
I'm connected to my university's network via SSH; in order to access my mails via IMAP (instead of the dreadful PINE), I need to etablish a "tunnel" via ssh connecting my port 143 to the one of the remote machine, since there is no way to directly connect via IMAP from a distant comp (I know this suck...). SO, what is the command to etablish tunnels under UNIX? (could be linux as well, not sure what that university server is running)

TIA,

Kinniken
 
This should be as easy as

Code:
ssh -L 10143:univserver:143 user@univserver

This will forward any connections to your machines' port 10143 through ssh over to univserver's 143.

Then you just tell your mail program to connect via IMAP to localhost:10143 .
 
Back
Top