ssh port redirection ?
Tom Buskey
tom at buskey.name
Thu Sep 26 12:02:11 EDT 2002
You don't *have* to open a login session on the remote host:
ports='-L 143:burlma1-smail1.gtei.net:143 -L 110:burlma1-smail1.gtei.net:
110 -L -L 119:news.genuity.net:119'
sudo ssh -2 -C -f -l tbuskey $ports magic.tools.gtei.net '/bin/sleep 20000000'
Man ssh:
-f Requests ssh to go to background just before command execution.
This is useful if ssh is going to ask for passwords or
passphrases, but the user wants it in the background. This
implies -n.
bscott at ntisys.com said:
>On Wed, 25 Sep 2002, at 3:30pm, ddm+gnhlug at pizzashack.org wrote:
>> Yes, you do. Unfortunately, ssh ties up a terminal whenever you do a port
>> redirection; i.e. you must log into the system to do this.
>
> If this really bothers people that much, and you are using SSH protocol
>version 2 (and you *are* doing that, right?), you can do this:
That's better too.
>
>ssh -N pll at system-b -L 8110:pop-server:110 &
>fetchmail --protocol POP3 --port 8110 localhost
>
>--
>Ben Scott <bscott at ntisys.com>
>| The opinions expressed in this message are those of the author and do not |
>| necessarily represent the views or policy of any other person, entity or |
>| organization. All information is provided without warranty of any kind. |
>
>
>_______________________________________________
>gnhlug-discuss mailing list
>gnhlug-discuss at mail.gnhlug.org
>http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
>
--
-------
Tom Buskey
More information about the gnhlug-discuss
mailing list