jsch-cvs Mailing List for JSch
Status: Alpha
Brought to you by:
ymnk
You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(1) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
|
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) |
|
From: Vijaya N. <vi...@hp...> - 2011-08-08 17:20:34
|
Hi, Is there an example for concurrent file transfers using jsch library in the examples directory ? In order to achieve concurrent file transfer, do I need to open two sessions, connect, and open different channel from each sessions ? The reason i am asking that question is If I just use one session and open two different channels then i am not actually getting the same transfer rate. somehow, the speed is split into half ? is it true ? or something wrong in my setup ? One more question regarding the performance. In one of the network setup, compression level "3" works great, the performance is matching up to globus-url-copy, where as in another setup, setting up compression to any level is working very bad. Do you know what could be reason for that. If any one could tell what are the key parameters needs to be set in order to speed up the performance. Thanks a lot. Viji |
|
From: Vijaya N. <vi...@hp...> - 2011-08-05 01:44:23
|
Hi, Is there an example for concurrent file transfers using jsch library in the examples directory ? In order to achieve concurrent file transfer, do I need to open two sessions, connect, and open different channel from each sessions ? The reason i am asking that question is If I just use one session and open two different channels then i am not actually getting the same transfer rate. somehow, the speed is split into half ? is it true ? or something wrong in my setup ? One more question regarding the performance. In one of the network setup, compression level "3" works great, the performance is matching up to globus-url-copy, where as in another setup, setting up compression to any level is working very bad. Do you know what could be reason for that. If any one could tell what are the key parameters needs to be set in order to speed up the performance. Thanks a lot. Viji |
|
From: J.D. R. <jd...@gm...> - 2006-12-04 18:01:04
|
Hi. New guy here. I've recently embarked on a (possibly foolish) mission to learn Java by porting a suite of scripts from Perl, starting with one that does non-interactive SFTP. I'm not wholly unprepared for this journey, as I've programmed in a variety of other languages, but the (ahem) limited documentation of jsch has me somewhat stymied. The general flow of my program goes like this: * Establish connection using login information held in environment variables (userid, hostname, password) [getting via java.util.Properties]. * Automatically accept host key (or not) based on boolean parameter. Throw exception if accept=false and key not known. * Execute get or put for named file. * Disconnect. Simple, right? Maybe. It's not obvious to me from reading the examples where the acceptance of the host key happens. I've hacked the session connection enough that I think establishing the connection will work, but I've got to get the whole session established (host key and all) before I can test, as there's no interactivity. Can anyone help? Has anyone else here done something similar? Code snippets are appreciated. thx JD -- http://somethingstirring.blogspot.com/ If you don't stir the pot, the stuff at the bottom just sits there. |
|
From: Patrick O. H. <PH...@co...> - 2006-11-01 21:29:39
|
I can connect a session using keyboard interactive authentication, but if I disconnect and try to connect again (using the same session object), I get "invalid data," thrown from Session.connect(). this does not happen if I use password authentication. are there any workarounds for this? Patrick |