Hi, Thanks so much to jcraft, the jsch tool, it is incredibly useful. I am having a strange problem connecting to a red hat 5.4 server. It works from windows, but from solaris i get an Auth fail Exception.
-------------------------------------------------------------------------------- Here is the debug log from solaris: j...@p1dvims01 mon> uname -a SunOS p1dvims01 5.10 Generic_139555-08 sun4v sparc SUNW,SPARC-Enterprise-T5120 1: Connecting to p1uaintsoa01 port 22 1: Connection established 1: Remote version string: SSH-2.0-OpenSSH_4.3 1: Local version string: SSH-2.0-JSCH-0.1.42 1: CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256 1: aes256-ctr is not available. 1: aes192-ctr is not available. 1: aes256-cbc is not available. 1: aes192-cbc is not available. 1: arcfour256 is not available. 1: SSH_MSG_KEXINIT sent 1: SSH_MSG_KEXINIT received 1: kex: server->client aes128-ctr hmac-md5 none 1: kex: client->server aes128-ctr hmac-md5 none 1: SSH_MSG_KEXDH_INIT sent 1: expecting SSH_MSG_KEXDH_REPLY 1: ssh_rsa_verify: signature true 2: Permanently added 'p1uaintsoa01' (RSA) to the list of known hosts. 1: SSH_MSG_NEWKEYS sent 1: SSH_MSG_NEWKEYS received 1: SSH_MSG_SERVICE_REQUEST sent 1: SSH_MSG_SERVICE_ACCEPT received 1: Authentications that can continue: publickey,password 1: Next authentication method: publickey 1: Authentications that can continue: password 1: Next authentication method: password 1: Disconnecting from p1uaintsoa01 port 22 com.jcraft.jsch.JSchException: Auth fail at com.jcraft.jsch.Session.connect(Session.java:452) --------------------------------------------------------------------------------- Here is the debug log from windows. It connects ok. 1: Connecting to p1uaintsoa01 port 22 1: Connection established 1: Remote version string: SSH-2.0-OpenSSH_4.3 1: Local version string: SSH-2.0-JSCH-0.1.42 1: CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256 1: aes256-ctr is not available. 1: aes192-ctr is not available. 1: aes256-cbc is not available. 1: aes192-cbc is not available. 1: arcfour is not available. 1: arcfour128 is not available. 1: arcfour256 is not available. 1: SSH_MSG_KEXINIT sent 1: SSH_MSG_KEXINIT received 1: kex: server->client aes128-ctr hmac-md5 none 1: kex: client->server aes128-ctr hmac-md5 none 1: SSH_MSG_KEXDH_INIT sent 1: expecting SSH_MSG_KEXDH_REPLY 1: ssh_rsa_verify: signature true 2: Permanently added 'p1uaintsoa01' (RSA) to the list of known hosts. 1: SSH_MSG_NEWKEYS sent 1: SSH_MSG_NEWKEYS received 1: SSH_MSG_SERVICE_REQUEST sent 1: SSH_MSG_SERVICE_ACCEPT received 1: Authentications that can continue: publickey,password 1: Next authentication method: publickey 1: Authentications that can continue: password 1: Next authentication method: password 1: Authentication succeeded (password). 1: Disconnecting from p1uaintsoa01 port 22 1: Caught an exception, leaving main loop due to socket closed
------------------------------------------------------------------------------
_______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users