Re: Background tunnel

From: Alan Walker (me@my.net)
Date: 12/14/02


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
>
>
>
>
>



Relevant Pages

  • Re: ps/2 mouse w/o int33
    ... The standard PS/2 mouse sends movement/button information to the host ... (ie, after a packet is sent to the host, the movement counters are reset.) ... They are also reset after the mouse receives any command from the host ... Host: F3 Set Sample Rate: Attempt to Enter Microsoft ...
    (comp.lang.asm.x86)
  • RV: remote tape with ontape (dd command) fail after openssh install
    ... I solved the permission denied of root remote command adding remote host to ... The source of problem has to do with the post installation openssh. ...
    (comp.databases.informix)
  • Re: One computer cant see the other.
    ... When I net view from the client computer to the host computer I get my ... When I click on the shared folders in My Network Places(on ... command prompt on my host machine and my client machine when I ping the host. ... Open a command prompt window first, ...
    (microsoft.public.windowsxp.network_web)
  • Re: looking for answers to 4 SCNA questions
    ... > route add host lion tiger 1 ... > A. The command would add a static route to the routing table. ... All hosts on the lion network could be reached as a result of the ...
    (comp.unix.solaris)
  • Re: Need WMI script
    ... However, if you use the cscript host, ... you can use a command similar to below at a command prompt: ... Microsoft MVP Scripting and ADSI ...
    (microsoft.public.windows.server.scripting)