Open SSH configuration query

Darren Tucker dtucker at zip.com.au
Thu Jul 18 00:45:40 EST 2013


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