X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <4C800078.9040101@bopp.net> References: <29608117 DOT post AT talk DOT nabble DOT com> <4C7FFCCE DOT 7040207 AT budcat DOT com> <4C800078 DOT 9040101 AT bopp DOT net> Date: Thu, 2 Sep 2010 21:31:30 +0100 Message-ID: Subject: Re: How to get a script file to use bash and ssh From: Andy Koppe To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On 2 September 2010 20:52, Jeremy Bopp wrote: >> That's all more complicated than it needs to be. Just make windows >> shortcuts to c:\cygwin\bin\ssh.exe, where "Start in:" is set to >> c:\cygwin\bin, and modify "Target:" to contain "C:\cygwin\bin\ssh.exe >> username AT hostname" (without the quotes of course). >> >> Better yet, install mintty if you don't already have it, and set the >> shortcuts' target to: "C:\cygwin\bin\mintty.exe -e /bin/ssh >> username AT hostname" >> >> (Mintty is a much better term window than cmd.) > > I was going to suggest much the same things to start; however, there > could be issues with home directory settings (necessary for locating the > private ssh keys). =C2=A0It might also be good to eventually work in the = ssh > agent so that the need for passwords can be reduced. That shouldn't be an issue, because HOME, if not set already, is set automatically based on the user's /etc/passwd entry or the Windows HOMEDRIVE and HOMEPATH variables when the initial Cygwin process is started. Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple