delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/02/16:31:44

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: <AANLkTiksieKcd5YUNqQoYNoAf2Ydxr+RGd+d5D1q-DST@mail.gmail.com>
Subject: Re: How to get a script file to use bash and ssh
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019