I figured out the problem...
The SHA1withRSA provider on the windows machine was coming from the SunRsaSign,
but the Solaris configuration had the SunPKCS11Solaris provider as the default.
Apparently the SunPKCS11Solaris provider/configuration was not compatible or
was not working correctly. Once I adjusted the configuration so that the
SunRsaSign provider was being used instead, the process started working
correctly.
From: Don Hillsberry
Sent: Tuesday, September 08, 2009 1:29 PM
To: [email protected]
Subject: ssh publickey client login working from windows but not unix
I developed a solution patterned after UserAuthPubKey.java but without the gui
components, it works fine on windows, but when run on a sun machine it fails
with com.jcraft.jsch.JSchException: Auth fail
The java solution works on windows and the same key works on the sun machine
when using the unix command-line /usr/bin/sftp.
Any suggestions for what might be the cause?
Here is the logging output with hostname removed for privacy reasons.
INFO: Connection established
INFO: Remote version string: SSH-2.0-SSHD
INFO: Local version string: SSH-2.0-JSCH-0.1.42
INFO: CheckCiphers:
aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
INFO: SSH_MSG_KEXINIT sent
INFO: SSH_MSG_KEXINIT received
INFO: kex: server->client aes128-cbc hmac-md5 none
INFO: kex: client->server aes128-cbc hmac-md5 none
INFO: SSH_MSG_KEXDH_INIT sent
INFO: expecting SSH_MSG_KEXDH_REPLY
INFO: ssh_rsa_verify: signature true
WARN: Permanently added [remote hostname removed] (RSA) to the list of known
hosts.
INFO: SSH_MSG_NEWKEYS sent
INFO: SSH_MSG_NEWKEYS received
INFO: SSH_MSG_SERVICE_REQUEST sent
INFO: SSH_MSG_SERVICE_ACCEPT received
INFO: Authentications that can continue: publickey,keyboard-interactive,password
INFO: Next authentication method: publickey
com.jcraft.jsch.JSchException: Auth fail
INFO: Disconnecting from [remote hostname removed] port 22
--------------------------------------------------------------------------------
Windows Live: Make it easier for your friends to see what you’re up to on
Facebook. Find out more.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users