[Jsch-cvs] com.jcraft.jsch.JSchException: Auth fail
Status: Alpha
Brought to you by:
ymnk
From: Santhosh <san...@gm...> - 2016-12-05 17:16:33
|
hi, i had updated to latest JSCH version and every thing worked fine for couple of days. not sure what happend , i started seeing Auth fail error , is there any thing im missing ? please help me out on this. i'm able to run this command and success response: /.ssh/cargoapp -- being my public key. ssh -v -i /.ssh/cargoapp ssimsftp@XXcom <ssi...@zo...> hostname OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Connecting to xx.com [XX.XX.XX.XX] port 22. debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: identity file /.ssh/cargoapp type 1 debug1: loaded 1 keys debug1: Remote protocol version 2.0, remote software version OpenSSH_7.3 debug1: match: OpenSSH_7.3 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.3 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-ctr hmac-sha1 none debug1: kex: client->server aes128-ctr hmac-sha1 none debug1: sending SSH2_MSG_KEXDH_INIT debug1: expecting SSH2_MSG_KEXDH_REPLY debug1: Host 'xx.com' is known and matches the RSA host key. debug1: Found key in /root/.ssh/known_hosts:8 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 debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: publickey debug1: Offering public key: /.ssh/cargoapp debug1: Server accepts key: pkalg ssh-rsa blen 277 debug1: read PEM private key done: type RSA debug1: Authentication succeeded (publickey). debug1: channel 0: new [client-session] debug1: Entering interactive session. debug1: client_input_global_request: rtype hos...@op... want_reply 0 debug1: Sending environment. debug1: Sending env LANG = en_US.UTF-8 debug1: Sending command: hostname XX debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug1: channel 0: free: client-session, nchannels 1 debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.1 seconds debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0 debug1: Exit status 0 INFO: Connecting to XX.XX.X.XXX port 22 INFO: Connection established INFO: Remote version string: SSH-2.0-OpenSSH_7.3 INFO: Local version string: SSH-2.0-JSCH-0.1.54 INFO: CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256 INFO: aes256-ctr is not available. INFO: aes192-ctr is not available. INFO: aes256-cbc is not available. INFO: aes192-cbc is not available. INFO: CheckKexes: diffie-hellman-group14-sha1,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521 INFO: CheckSignatures: ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521 INFO: SSH_MSG_KEXINIT sent INFO: SSH_MSG_KEXINIT received INFO: kex: server: cur...@li... ,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1 INFO: kex: server: ssh-rsa,rsa-sha2-512,rsa-sha2-256 INFO: kex: server: cha...@op... ,aes128-ctr,aes192-ctr,aes256-ctr,aes...@op..., aes...@op... INFO: kex: server: cha...@op... ,aes128-ctr,aes192-ctr,aes256-ctr,aes...@op..., aes...@op... INFO: kex: server: uma...@op...,uma...@op..., hma...@op...,hma...@op..., hma...@op...,um...@op...,uma...@op... ,hmac-sha2-256,hmac-sha2-512,hmac-sha1 INFO: kex: server: uma...@op...,uma...@op..., hma...@op...,hma...@op..., hma...@op...,um...@op...,uma...@op... ,hmac-sha2-256,hmac-sha2-512,hmac-sha1 INFO: kex: server: none,zl...@op... INFO: kex: server: none,zl...@op... INFO: kex: server: INFO: kex: server: INFO: kex: client: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 INFO: kex: client: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521 INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc INFO: kex: client: hmac-sha2-256 INFO: kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96 INFO: kex: client: none INFO: kex: client: none INFO: kex: client: INFO: kex: client: INFO: kex: server->client aes128-ctr hmac-sha1 none INFO: kex: client->server aes128-ctr hmac-sha2-256 none INFO: SSH_MSG_KEX_ECDH_INIT sent INFO: expecting SSH_MSG_KEX_ECDH_REPLY INFO: ssh_rsa_verify: signature true WARN: Permanently added 'XX.XX.X.XXX' (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 WARN: an exception during authentication java.io.IOException: End of IO Stream Read INFO: Disconnecting from XX.XX.X.XXX port 22 com.jcraft.jsch.JSchException: Auth fail at com.jcraft.jsch.Session.connect(Session.java:519) at com.jcraft.jsch.Session.connect(Session.java:183) at com.xx.batch.core.filetransfer.sftp.util.SFTPHelperUtil.connectImpl(SFTPHelperUtil.java:90) at com.xx.batch.core.filetransfer.sftp.util.SFTPHelperUtil.connect(SFTPHelperUtil.java:72) at com.xx.batch.core.filetransfer.sftp.util.SFTPHelperUtil.main(SFTPHelperUtil.java:414) |