Open SSH configuration query

Prashanth Maiya prashanth.maiya at oracle.com
Thu Jul 18 01:02:53 EST 2013


Thanks Darren.
Actullay we wanted to run a Windows batch file and then execute a shell script from same SSH command.
Windows batch file maps the network drives and later the shell script needs this mapped drives.

Thanks,
Prashanth
-----Original Message-----
From: Darren Tucker [mailto:dtucker at zip.com.au] 
Sent: Wednesday, July 17, 2013 8:16 PM
To: Prashanth Maiya
Cc: openssh-unix-dev at mindrot.org; Saurabh Bhatnagar
Subject: Re: Open SSH configuration query

On Wed, Jul 17, 2013 at 5:06 PM, Prashanth Maiya <prashanth.maiya at oracle.com> wrote:
>              I have downloaded openssh (http://www.openssh.com/) on my Windows host.
>              Just wanted to know if openssh allows executing a batch script on Windows host.
>              Batch script contains mapping of shares which is required for my scripts.

There's no binaries available from openssh.com that run on Windows, however assuming you either have the Cygwin binaries or have compiled OpenSSH using Cygwin, any mapped drives are available under /cygdrive/$driveletter, assuming you're trying to run a script that is Cygwin aware.

If it's vanilla Windows batch file then I dunno.  The fact that Cygwin works as well as it does is amazing given the differences between Windows and POSIX environments, but OpenSSH targets a POSIX-like environment and I don't know how well it would be able to support a Windows batch file invoked via an ssh command.

Perhaps if you provided a bit more information about what you're trying to do we might be able to provide some better advice.
Alternatively, you could try it and let us know how it goes.

--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.


More information about the openssh-unix-dev mailing list