Re: Background tunnel
From: Alan Walker (me@my.net)
Date: 12/14/02
- Next message: Alan Walker: "Re: Question on blocking remote root access via SSH"
- Previous message: Renaissance Man: "Re: Which authenttication is better"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Alan Walker" <me@my.net> Date: Fri, 13 Dec 2002 20:01:23 -0500
ssh -l username -f -N -g -L 110:mailserver:110 mailserver
This connection assumes that both the server and the host are configured to
use SSH keys, and that the private key on the host is not password
protected. I should mention, all of this information is available in man
ssh. Be aware that using passwords in command line parameters is exteremely
risky because a user could pick it out from a ps -aux command or by getting
access to a .history file.
"Jim Lill" <jpl@jpl.vectorbd.com> wrote in message
news:pan.2002.11.24.20.55.50.637841@jpl.vectorbd.com...
>
> I want to set up a tunnel to a remote system and have it all happen in the
> background. I need to use password etc. This works, but not in the bg
>
>
> #!/usr/bin/expect
> spawn ssh -x -p 23 -L 25:localhost:25 -L 143:localhost:143 me@host.com
> expect {
> assword: { send mypw\n; interact }
>
> what do I need to do?
>
> TIA
>
> -Jim
>
>
>
>
>
- Next message: Alan Walker: "Re: Question on blocking remote root access via SSH"
- Previous message: Renaissance Man: "Re: Which authenttication is better"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|