X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Kevin Cella Subject: ssh-agent at startup Date: Mon, 1 Jun 2009 01:46:48 +0000 (UTC) Lines: 9 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 I'm trying to automate my backup using rsync and cron. I have the ssh key pair setup, but still requires me manually start s cygwin shell every time I boot into Windows. Does anyone know of a way to start and agent and prompt for my passphrase at boot? Below is what I'm using now and is what I consider a hack. I'd prefer something more polished. C:\cygwin\bin\bash.exe -c "eval `/usr/bin/ssh-agent`; /usr/bin/ssh-add; exit;" -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/