Hi folks,

I'm trying to set up a port forward using SSH so that I can collect my emails 
from home through the company firewall (it's okay, I'm the sysadmin so I 
won't be treading on any toes.

>From the man page and various googles I've come up with:

ssh -L 110:stan:110 stan

which opens up a terminal session to stan and also sets up the port forward, 
so that if I then do

telnet 127.0.0.1 110

I get connected to the pop server on stan.

What I need to know is how can I do this without ssh opening up the terminal 
session?  The reason being that I want to start the ssh port forward as part 
of my ip-up script and kill it as part of my ip-down script.

When I tried putting it in the background by sticking an ampersand on the end, 
it stopped until I 'fg' ed it.

-- 
Gary Stainburn
 
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000     



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to