Detach ssh from bash in Cygwin?
From: Duncan Murdoch (google_at_murdoch-sutherland.com)
Date: 03/25/04
- Next message: Cole Tuininga: "CVS without a shell"
- Previous message: Giovani: "SSH and login without password (not passwordless login)"
- Next in thread: Nico Kadel-Garcia: "Re: Detach ssh from bash in Cygwin?"
- Reply: Nico Kadel-Garcia: "Re: Detach ssh from bash in Cygwin?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 25 Mar 2004 11:44:23 -0800
I'm using OpenSSH in Cygwin under WinXP. I can set up POP3 port
forwarding (for Forte Agent) from within the bash shell in Cygwin, but
when I close the bash window, it shuts down the ssh process that is
doing the forwarding for me.
This doesn't happen with ssh-agent; that process keeps running after
the bash window closes.
Is there a way to detach the ssh process from the shell so I can close
the window without killing it?
I think I've tried all combinations of putting an & at the end of the
ssh command line, and putting a -f option in it, so far with no luck.
For example, here's a command line I've tried:
ssh -N -f -L 2110:mailhost.com:110 dmurdoch@mailhost.com &
This installs the tunneling and things work fine until I try to close
the window with "exit"; then the window won't close until I click on
the frame to close it, at which time Windows says "Windows cannot
close this program ....", and if I tell it to "End now", the ssh
process goes away too.
Duncan Murdoch
- Next message: Cole Tuininga: "CVS without a shell"
- Previous message: Giovani: "SSH and login without password (not passwordless login)"
- Next in thread: Nico Kadel-Garcia: "Re: Detach ssh from bash in Cygwin?"
- Reply: Nico Kadel-Garcia: "Re: Detach ssh from bash in Cygwin?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|