Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: Duncan Murdoch To: cygwin AT cygwin DOT com Subject: ssh-agent: Cygwin version problems Date: Sun, 26 Sep 2004 10:54:29 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes I've been using OpenSSH with Cygwin for a while now, very successfully. Thanks to all who put this together. I'd like to set up my machine for remote logins now, which makes me much more security conscious: using an old version of OpenSSH is not really an option. However, I can't find a way to get the latest OpenSSH to work without messing up ssh-agent in the sense that it becomes strongly attached to the bash window in which it was started. With the versions I've got now, I can start ssh-agent, and an ssh tunnel, and then close the window, and those processes keep running. This is very nice! As soon as I upgrade Cygwin, or the base files, this stops working. The bash window refuses to close; if I tell Windows to shut it down, it kills ssh-agent and ssh as well. If I only upgrade OpenSSH, it won't start, because it's been linked against a newer version of cygwin1.dll, and can't find an entry point it needs. Here's how I start ssh-agent: alias sshstart='ssh-agent >~/ssh-agent-pid; source ~/ssh-agent-pid; ssh-add' and here's ssh: alias sshtunnel='ssh -N -f -L [my tunnel] [my username] >/dev/null 2>/dev/null