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.
http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_facebook:082009
------------------------------------------------------------------------------
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

Reply via email to