I tried connecting to some other SFTP server. that gives me a diff error.
as below.
INFO: Connecting to 9.126.142.193 port 2222
INFO: Connection established
INFO: Remote version string: SSH-2.0-${POM.ARTIFACTID}-${POM.VERSION}
INFO: Local version string: SSH-2.0-JSCH-0.1.49
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: arcfour256 is not available.
INFO: CheckKexes: diffie-hellman-group14-sha1
INFO: SSH_MSG_KEXINIT sent
INFO: SSH_MSG_KEXINIT received
INFO: kex: server: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
INFO: kex: server: ssh-rsa
INFO: kex: server: aes128-cbc,3des-cbc
INFO: kex: server: aes128-cbc,3des-cbc
INFO: kex: server: hmac-sha2-256
INFO: kex: server: hmac-sha2-256
INFO: kex: server: none
INFO: kex: server: none
INFO: kex: server:
INFO: kex: server:
INFO: kex: client:
diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1
INFO: kex: client: ssh-rsa,ssh-dss
INFO: kex: client: 3des-cbc,aes128-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-cbc hmac-sha2-256 none
INFO: kex: client->server 3des-cbc hmac-sha2-256 none
INFO: SSH_MSG_KEXDH_INIT sent
INFO: expecting SSH_MSG_KEXDH_REPLY
INFO: ssh_rsa_verify: signature true
WARN: Permanently added '9.126.142.193' (RSA) to the list of known hosts.
INFO: SSH_MSG_NEWKEYS sent
INFO: SSH_MSG_NEWKEYS received
INFO: SSH_MSG_SERVICE_REQUEST sent
INFO: Disconnecting from 9.126.142.193 port 2222
com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: End
of IO Stream Read
Thanks and Regards,
Usha
From: Usha Ladkani/India/IBM
To: y...@jcraft.com (Atsuhiko Yamanaka)
Cc: jsch-users@lists.sourceforge.net
Date: 03/20/2013 04:49 PM
Subject: Re: [JSch-users] jsch-0.1.49
Additionally these are logs
INFO: Connecting to 9.113.213.171 port 41099
INFO: Connection established
INFO: Remote version string: SSH-2.0-SFTP Server
INFO: Local version string: SSH-2.0-JSCH-0.1.49
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: arcfour256 is not available.
INFO: CheckKexes: diffie-hellman-group14-sha1
INFO: SSH_MSG_KEXINIT sent
INFO: SSH_MSG_KEXINIT received
INFO: kex: server:
diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1
INFO: kex: server: ssh-rsa
INFO: kex: server:
aes256-cbc,3des-ctr,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,blowfish-cbc,aes128-cbc,aes192-cbc,arcfour,arcfour128,arcfour256,twofish256-cbc,twofish192-cbc,twofish128-cbc,cast128-cbc
INFO: kex: server:
aes256-cbc,3des-ctr,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,blowfish-cbc,aes128-cbc,aes192-cbc,arcfour,arcfour128,arcfour256,twofish256-cbc,twofish192-cbc,twofish128-cbc,cast128-cbc
INFO: kex: server:
hmac-sha256,hmac-sha1,hmac-md5,hmac-md5-96,hmac-sha1-96,hmac-sha...@ssh.com
INFO: kex: server:
hmac-sha256,hmac-sha1,hmac-md5,hmac-md5-96,hmac-sha1-96,hmac-sha...@ssh.com
INFO: kex: server: none,zlib
INFO: kex: server: none,zlib
INFO: kex: server:
INFO: kex: server:
INFO: kex: client:
diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1
INFO: kex: client: ssh-rsa,ssh-dss
INFO: kex: client: 3des-cbc,aes128-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: Disconnecting from 9.113.213.171 port 41099
com.jcraft.jsch.JSchException: Algorithm negotiation fail
Thanks and Regards,
Usha
From: Usha Ladkani/India/IBM
To: y...@jcraft.com (Atsuhiko Yamanaka)
Cc: jsch-users@lists.sourceforge.net
Date: 03/20/2013 04:20 PM
Subject: Re: [JSch-users] jsch-0.1.49
Thank you for quick reply.
This test code works .
But if i add
config.put("mac.c2s", "hmac-sha2-256");
session.setConfig(config);
before session.connect(); .
I get com.jcraft.jsch.JSchException: Algorithm negotiation fail
I want to specifically use only hmac-sha2-256 and hmac-sha2-512.
Thanks and Regards,
Usha
From: y...@jcraft.com (Atsuhiko Yamanaka)
To: Usha Ladkani/India/IBM@IBMIN
Cc: jsch-users@lists.sourceforge.net
Date: 03/20/2013 03:22 PM
Subject: Re: [JSch-users] jsch-0.1.49
Hi,
+-From: Usha Ladkani <uladk...@in.ibm.com> --
|_Date: Wed, 20 Mar 2013 14:05:49 +0530 _____
|
|We found that jsch-0.1.49 supports both these algorithms.
|I have implemented the code to have
|config.put("cipher.c2s", "3des-cbc,aes192-cbc,aes128-cbc,aes256-cbc");
|config.put("mac.c2s", "hmac-sha2-256");
|session.setConfig(config);
|session.connect();
|Some how It does not work with the SFTP server which supports this
algo.
|and gives error.
|com.jcraft.jsch.JSchException: Algorithm negotiation fail
| at com.jcraft.jsch.Session.receive_kexinit(Session.java:559)
Try the following sample program,
http://www.jcraft.com/jsch/examples/Logger.java
You may find the reason for that problem in its outputs.
Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
Skype callto://jcraft/
Twitter: http://twitter.com/ymnk
Facebook: http://facebook.com/aymnk
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users