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') This operation, using the cygwin command line environment will work fine, but launched from within matlab, using the system routine, will hang. Here is the output from the ssh log: >> system('C:\cygwin\bin\ssh.exe -t -t -v lar...@wilkes') OpenSSH_5.1p1, OpenSSL 0.9.8k 25 Mar 2009 debug1: Connecting to wilkes [137.79.160.187] port 22. debug1: Connection established. debug1: identity file /cygdrive/c/home/.ssh/identity type 0 debug1: identity file /cygdrive/c/home/.ssh/id_rsa type 1 debug1: identity file /cygdrive/c/home/.ssh/id_dsa type 2 debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3 debug1: match: OpenSSH_4.3 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_5.1 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-cbc hmac-md5 none debug1: kex: client->server aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host 'wilkes' is known and matches the RSA host key. debug1: Found key in /cygdrive/c/home/.ssh/known_hosts:1 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received ====================================================================== This computer is funded by the United States Government and operated by the California Institute of Technology in support of ongoing U.S. Government programs and activities. If you are not authorized to access this system disconnect now. Users of this system have no expectation of privacy. By continuing, you consent to your keystrokes and data content being monitored. ====================================================================== debug1: Authentications that can continue: publickey,gssapi-with-mic,password debug1: Next authentication method: publickey debug1: Offering public key: /cygdrive/c/home/.ssh/id_rsa debug1: Authentications that can continue: publickey,gssapi-with-mic,password debug1: Offering public key: /cygdrive/c/home/.ssh/id_dsa debug1: Authentications that can continue: publickey,gssapi-with-mic,password debug1: Next authentication method: password The prompt for password never comes up, and it will hang indefinitely. Anyone has any idea what could be going on ? Thank you for any help, Eric Larour -- View this message in context: http://www.nabble.com/ssh-hanging-when-used-through-Matlab-tp24796656p24796656.html Sent from the OpenSSL - User mailing list archive at Nabble.com. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org