> From: owner-openssl-us...@openssl.org On Behalf Of larour
> Sent: Monday, 03 August, 2009 15:27

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

Although there is only one letter difference, SSH and SSL are different 
protocols and OpenSSH and OpenSSL are separate libraries. Basic crypto 
principles are necessarily the same, but the programs are not at all.
There is probably a better forum for openssh questions, but I use it 
much less intensively and have never needed to look for support. (I use 
putty on my Windows; some servers are openssh, but I don't admin them.)

> The command i'm running under matlab is: 
> 
> system('C:\cygwin\bin\ssh.exe  -t -t -v lar...@wilkes.jpl.nasa.gov')
> 
Did you repeat -t because otherwise you got an error about 'local tty'?

> This operation, using the cygwin command line environment 
> will work fine, but launched from within matlab, using the 
> system routine, will hang <snip>
> The prompt for password never comes up, and it will hang indefinitely.
> 
> Anyone has any idea what could be going on ? 

Maybe matlab is doing something odd to the "terminal" (console window) 
that blocks or interferes with (open)ssh's reading from it.
If without -t you got errors about 'local tty' that would certainly be 
related; describe them in detail but preferably to an openssh forum.

Specifying -t (twice) only affects the REMOTE end, 
it can't change anything about local I/O.

Can you correctly run and interact with a simple program like 'ed' 
under matlab? How about a slightly less simple one like 'vi'?
Maybe you need to specify some options to matlab somehow.

I see you apparently have (SSH) PK-keys. Can/should you use those 
instead of password (by putting in authorized_keys on the server)?
That might solve your login (authentication) problem, but you would 
probably still have a problem with actually using the server.



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

Reply via email to