This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to get a script file to use bash and ssh


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@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@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]