Gary Stainburn said: > 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.
not sure myself. You could load it in screen, but you'd still need to detach screen. not pretty, but: screen -ln ssh -L port:host:port host & sleep 5 ; screen -d but it may not work from a terminal as well(e.g from a script) a better solution may be a VPN or dedicated tunneling software, I like stunnel(SSL tunnel). It's meant to run unattended. I use it for MYSQL and LDAP stuff. for my personal mail I use squirrelmail over apache-ssl. works good. nate -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list