X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Message-ID: <4C800C26.1090907@bopp.net> Date: Thu, 02 Sep 2010 15:42:14 -0500 From: Jeremy Bopp User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: How to get a script file to use bash and ssh References: <29608117 DOT post AT talk DOT nabble DOT com> <4C7FFCCE DOT 7040207 AT budcat DOT com> <4C800078 DOT 9040101 AT bopp DOT net> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 On 9/2/2010 3:31 PM, Andy Koppe wrote: > 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). It 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. Assuming, of course, that the necessary entry in /etc/passwd is set correctly. The OP sounds pretty green and may have a different idea of his home directory's location than Cygwin deduces, so a little extra hand holding may be in order. :-) -Jeremy -- 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