On 2009.08.03 at 12:26:31 -0700, larour wrote:

> 
> I am trying to launch an ssh connection from a matlab environment (Matlab
> R2009), using the Cygwin OpenSSH_5.p1 ssh executable, on a windows xp 32
> platform. 
> The command i'm running under matlab is: 
> 
> system('C:\cygwin\bin\ssh.exe  -t -t -v lar...@wilkes.jpl.nasa.gov')

I'd suggest you to never use cygwin programs in combination with native windows
programs (such as matlab). Even better - never to use cygwin at all.
There are other collections of ports of unix software to windows, such
as msys (www.mingw.org) or gnuwin32 (somewhere on sourceforge). They
might be not so complete, but much better interoperate with windows
environment. 


Cygwin is big and complicated unix emulation layer, and has numerous
reasons to conflict with native windows apps. Cygwin console session is
not same as windows session. And it is not guaranteed that cygwin app
would be able to reach console when started from GUI app, even if this
GUI app is started from cygwin console window.

For instance, I've encountered problems when cygwin SSH was unable to
reach its agent through layer of native windows console application.

Better to use some other native windows ssh client such as plink
(from putty). Putty provides private key agent which works session-wide,
so if plink started from application, which is started from Programs
menu, it would be able to reach agent.

Although, it wouldn't help much in case of password authentication.
plink writes password prompt to the stdout (while openssh tries to open
controlling terminal), and unable to do password authentication when
started from some other application, such as cvs client. But works fine
with public key authentication.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to