Gerry Reno | 3 Nov 03:13 2013
Picon
Picon

hostKeyRepository.check always returning NOT FOUND

Even if I hardcode and cut and paste the exact key from my known_hosts, the hostKeyRepository.check will
only return
NOT_FOUND

int repoHostKeyCheck = hostKeyRepository.check( sessionHost, hostKey.getKey().getBytes() );

log:
V/MyApp(16481): SESSION     : 192.168.2.109 ssh-rsa f0:70:f0:6e:f3:bc:74:bc:81:74:a3:42:11:07:87:49
AAAAB3NzaC1yc2EAAAABIwAAAQEAuwn4nvREfJ86S7suUVlrmyGBGkph1xfY1+UIh8lp4xP2WJPjXfVPdh/asFxYYkUNJWpJTtvZMfs4JGZZ1CP5UlWA6zB6lfjn0OvqCre8dZSV/6Nx2YwX1sGcV++IwEnMM3XnoWbqVAjSkI2e5EBWgD0CnOeFthvPdWQz4ywNqDLEbNDxHfmKR79cXJteCiC/+WRX5wNJQTlOMzOAuJEOXyroHoTaZ3nkgvaj45XIbKXdFL5oZGJshE7cJGbmQ7K7IDa+AA6UzlWnaUivu2svu0WwfJPOyVjtr69AS8ga0MTDH2Qn6Yqs0yxw7Z9JX2EQL4l0lF99T7u/3Bm5/3YxMw==

V/MyApp(16481): HOSTKEY REPO: 192.168.2.106 ssh-dss 8b:7b:84:97:c7:a1:e8:73:00:c3:9b:19:e1:11:7f:78
AAAAB3NzaC1kc3MAAACBAIVUq/q9Q7OiA1qVud6n3va/5Xrm2oSz6+lgfiKJY9bEoXC2K0gbx4Csyp2SE3GjPcVMW5O42Eh+fiOWR7EQrJEzR8iiH4129SjzePRXNV73VIrSdzzcTugfUzVm56BL3H+EzLYpRBioS44QVGePxCMED7EoC3V4CjHVaoFo5So3AAAAFQD/iA8C9mEEw0jWjhukSICuhRkuqwAAAIA+OO0Ia6MIwGh91i0JoKjgmPPxIPhFBx1MOpv2GmrEPmieubDQpmqiCG/jH6Kr39uewJiR06uBfXZdj9IFbWCW4dhL57jyEWqBY40m6HlzmKDSjZwMtGZLtvIJ+hFK0a4qBZaUNeeMNG1OtmxdHpnynE3YVBE2f6eyD7LyF18DUQAAAIBpnbWZy3ptzc3VCvrWcNBIa1oOKODvWlAdqXgpJ7mu01DTIVDUDLbe72XYBhr2v2rHRO91JmkA6qe+UFGiXtBCyFY3ehXzzSvmLrMOXZgR3aPh92conoE3VyUq7rf92IyJWp9N6zEio85L7zKZC6sXw6KUZtd3x5P1qiiUwc+kbg==
V/MyApp(16481): HOSTKEY REPO CHECK: NOT FOUND
V/MyApp(16481): HOSTKEY REPO CHECK: 1

V/MyApp(16481): HOSTKEY REPO: 192.168.2.109 ssh-rsa f0:70:f0:6e:f3:bc:74:bc:81:74:a3:42:11:07:87:49
AAAAB3NzaC1yc2EAAAABIwAAAQEAuwn4nvREfJ86S7suUVlrmyGBGkph1xfY1+UIh8lp4xP2WJPjXfVPdh/asFxYYkUNJWpJTtvZMfs4JGZZ1CP5UlWA6zB6lfjn0OvqCre8dZSV/6Nx2YwX1sGcV++IwEnMM3XnoWbqVAjSkI2e5EBWgD0CnOeFthvPdWQz4ywNqDLEbNDxHfmKR79cXJteCiC/+WRX5wNJQTlOMzOAuJEOXyroHoTaZ3nkgvaj45XIbKXdFL5oZGJshE7cJGbmQ7K7IDa+AA6UzlWnaUivu2svu0WwfJPOyVjtr69AS8ga0MTDH2Qn6Yqs0yxw7Z9JX2EQL4l0lF99T7u/3Bm5/3YxMw==
V/MyApp(16481): HOSTKEY REPO CHECK: NOT FOUND
V/MyApp(16481): HOSTKEY REPO CHECK: 1

This is bytes, right?  No encoding.

What could be the problem?

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
(Continue reading)

Shai Ayal | 31 Oct 19:44 2013
Picon

Keyboard-interactive authentication

Hi,

Thanks for jsch -- I use it in my open source android application SPT - persistent SSH tunnels for android.

Recently a user asked about supporting keyboard-interactive authentication (as opposed to the already supported password authentication mode).


Thanks again,
Shai
------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
JSch-users mailing list
JSch-users@...
https://lists.sourceforge.net/lists/listinfo/jsch-users
Danisment Gazi Unal | 17 Oct 16:47 2013

SFTP put to multiple destinations ?


Hello,

is there a way to send a file to multiple destinations by cascading
transmission ?

For example, If I send a file to server A, file should be sent to Server A,
and sent to Server B from Server A.

Source --> Server A --> Server B

I can not send directly from Source to Server A and Server B. I have to
offload transmissions to destinations.

Thanks in advance....

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
Danisment Gazi Unal | 10 Oct 14:21 2013

How to use SFTP put/get from a remote server to another remote server ?


Hello,

is it possible to use SFTP put/get to transfer files between servers
without running any command line utilities on remote servers except remote
SSH servers.

For example, client connects to a remote ServerA and transfer files from
ServerA to ServerB without transferring files to client.

thanks in advance...

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
Prakash Babu | 4 Oct 00:46 2013
Picon

setting session timeout

Hi,

If I run a remote command using jsch and for some reason it waits
infinitely. Is there a way to set a timeout to disconnect this session
after a certain period.
I see from the API docs that we can set a connect timeout, but is
there way to set a session timeout to disconnect the session after a
certain period ?

thanks,
Prakash

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
Erick Lichtas | 3 Oct 23:20 2013

Issues uploading to ProFTPd with mod_sftp

The latest versions of JSCH 0.1.49 and 0.1.50 are having issues transferring larger files (I’m testing with ~400MB) to ProFTPD server, however, the older version 0.1.44 that I’ve tested works (and has been working) just fine for quite some time.  I’ve included the configuration information of ProFTPd below.  The transfer of the file usually hangs anywhere between 10% and 20% of the transfer and is reproducible 100% of the time (for me) using the Sftp.java example class to upload the file using jsch version 1.49 and 1.50.  Jsch version 1.44, it works every time. 

 

I have the following setting configured in my proftpd config as recommended by the link below.

 

SFTPClientMatch ".*JSCH.*" channelWindowSize 1GB

 

https://forums.proftpd.org/smf/index.php?topic=4616.0

 

Can you please explain what change would have affected this and what adjustments I can make in the short term to get this transfer working? 

 

Waiting Thread

"main" prio=6 tid=0x000000000062c000 nid=0x1ff8 runnable [0x000000000256f000]

   java.lang.Thread.State: RUNNABLE

     at java.net.SocketOutputStream.socketWrite0(Native Method)

     at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)

     at java.net.SocketOutputStream.write(SocketOutputStream.java:136)

     at com.jcraft.jsch.IO.put(IO.java:77)

     at com.jcraft.jsch.Session._write(Session.java:1461)

     - locked <0x00000000ecd951f0> (a java.lang.Object)

     at com.jcraft.jsch.Session.write(Session.java:1424)

     at com.jcraft.jsch.ChannelSftp.sendWRITE(ChannelSftp.java:3329)

     at com.jcraft.jsch.ChannelSftp._put(ChannelSftp.java:795)

     at com.jcraft.jsch.ChannelSftp.put(ChannelSftp.java:623)

     at JSchTest.main(JSchTest.java:281)

 

 

ProFTPd configuration

 

Compile-time Settings:

  Version: 1.3.4d (maint)

  Platform: LINUX [Linux 2.6.32-38-generic i686]

  Built: Thu Oct 3 2013 11:07:09 CDT

  Built With:

    configure  '--prefix=/usr' '--with-includes=/usr/include/postgresql:/usr/include/mysql:/usr/openssl/include/' '--mandir=/usr/share/man' '--sysconfdir=/etc/proftpd' '--localstatedir=/var/run' '--libexecdir=/usr/lib/proftpd' '--enable-sendfile' '--enable-facl' '--enable-dso' '--enable-autoshadow' '--enable-ctrls' '--with-modules=mod_readme:mod_sftp' '--enable-ipv6' '--enable-nls' '--build' 'i486-linux-gnu' 'build_alias=i486-linux-gnu' 'CFLAGS=-O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_OPENSSL -DUSE_LDAP_TLS ' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2' '--enable-openssl' '--with-libraries=/usr/openssl/lib' '--with-shared=mod_ctrls_admin:mod_ban'

 

  CFLAGS: -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_OPENSSL -DUSE_LDAP_TLS  -Wall

  LDFLAGS: -L$(top_srcdir)/lib -Wl,-Bsymbolic-functions -L/usr/openssl/lib

  LIBS:  -lssl -lcrypto -lssl -lcrypto -L$(top_srcdir)/lib/libcap -lcap  -lcrypto -lsupp -lcrypt -ldl  -ldl -lz

 

  Files:

    Configuration File:

      /etc/proftpd/proftpd.conf

    Pid File:

      /var/run/proftpd.pid

    Scoreboard File:

      /var/run/proftpd.scoreboard

    Header Directory:

      /usr/include/proftpd

    Shared Module Directory:

      /usr/lib/proftpd

 

  Features:

    + Autoshadow support

    + Controls support

    - curses support

    - Developer support

    + DSO support

    + IPv6 support

    + Largefile support

    - Lastlog support

    - Memcache support

    - ncurses support

    + NLS support

    + OpenSSL support

    - PCRE support

    + POSIX ACL support

    + Shadow file support

    + Sendfile support

    + Trace support

 

  Tunable Options:

    PR_TUNABLE_BUFFER_SIZE = 1024

    PR_TUNABLE_DEFAULT_RCVBUFSZ = 8192

    PR_TUNABLE_DEFAULT_SNDBUFSZ = 8192

    PR_TUNABLE_GLOBBING_MAX_MATCHES = 100000

    PR_TUNABLE_GLOBBING_MAX_RECURSION = 8

    PR_TUNABLE_HASH_TABLE_SIZE = 40

    PR_TUNABLE_NEW_POOL_SIZE = 512

    PR_TUNABLE_SCOREBOARD_BUFFER_SIZE = 80

    PR_TUNABLE_SCOREBOARD_SCRUB_TIMER = 30

    PR_TUNABLE_SELECT_TIMEOUT = 30

    PR_TUNABLE_TIMEOUTIDENT = 10

    PR_TUNABLE_TIMEOUTIDLE = 600

    PR_TUNABLE_TIMEOUTLINGER = 30

    PR_TUNABLE_TIMEOUTLOGIN = 300

    PR_TUNABLE_TIMEOUTNOXFER = 300

    PR_TUNABLE_TIMEOUTSTALLED = 3600

    PR_TUNABLE_XFER_SCOREBOARD_UPDATES = 10

 

Thanks in advance!

 

Erick Lichtas

 

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
JSch-users mailing list
JSch-users@...
https://lists.sourceforge.net/lists/listinfo/jsch-users
Viet H. Phan | 27 Sep 04:57 2013
Picon

"java.io.IOException: End of IO Stream Read" during session.connect() of JSch 0.1.49 with JZlib 1.1.1

Hi,

I am keeping getting "java.io.IOException: End of IO Stream Read" issue when using JSch 0.1.49 with JZlib 1.1.1 to connect to an SSH-2.0-OpenSSH_5.3p1 Debian-3ubuntu6 server.
Following please find a detailed log:

15:50:05:073 Connecting to <server> port 22
15:50:05:694 Connection established
15:50:06:318 Remote version string: SSH-2.0-OpenSSH_5.3p1 Debian-3ubuntu6
15:50:06:319 Local version string: SSH-2.0-AdvantcoSFTPAdapter-3.0.28
15:50:06:319 CheckCiphers: 3des-cbc
15:50:06:319 CheckKexes: diffie-hellman-group14-sha1
15:50:06:324 SSH_MSG_KEXINIT sent
15:50:06:932 SSH_MSG_KEXINIT received
15:50:06:932 kex: server: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
15:50:06:933 kex: server: ssh-rsa,ssh-dss
15:50:06:933 kex: server: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc-SamgB31n2u5IcsJQ0EH25Q@public.gmane.org
15:50:06:933 kex: server: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc-SamgB31n2u5IcsJQ0EH25Q@public.gmane.org
15:50:06:933 kex: server: hmac-md5,hmac-sha1,umac-64-ZT/51Pfwho1BDgjK7y7TUQ@public.gmane.org,hmac-ripemd160,hmac-ripemd160-ZT/51Pfwho1BDgjK7y7TUQ@public.gmane.org,hmac-sha1-96,hmac-md5-96
15:50:06:933 kex: server: hmac-md5,hmac-sha1,umac-64-ZT/51Pfwho1BDgjK7y7TUQ@public.gmane.org,hmac-ripemd160,hmac-ripemd160 <at> openssh.com,hmac-sha1-96,hmac-md5-96
15:50:06:934 kex: server: none,zlib-ZT/51Pfwho1BDgjK7y7TUQ@public.gmane.org
15:50:06:934 kex: server: none,zlib-ZT/51Pfwho1BDgjK7y7TUQ@public.gmane.org
15:50:06:934 kex: server: 
15:50:06:934 kex: server: 
15:50:06:934 kex: client: diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256
15:50:06:934 kex: client: ssh-rsa,ssh-dss
15:50:06:934 kex: client: 3des-cbc
15:50:06:935 kex: client: 3des-cbc
15:50:06:935 kex: client: hmac-sha1,hmac-sha2-224,hmac-sha2-256,hmac-sha2-384,hmac-sha2-512
15:50:06:935 kex: client: hmac-sha1,hmac-sha2-224,hmac-sha2-256,hmac-sha2-384,hmac-sha2-512
15:50:06:935 kex: client: zlib,zlib-ZT/51Pfwho1BDgjK7y7TUQ@public.gmane.org,none
15:50:06:935 kex: client: zlib,zlib-ZT/51Pfwho1BDgjK7y7TUQ@public.gmane.org,none
15:50:06:935 kex: client: 
15:50:06:935 kex: client: 
15:50:06:936 kex: server->client 3des-cbc hmac-sha1 zlib-ZT/51Pfwho1BDgjK7y7TUQ@public.gmane.org
15:50:06:936 kex: client->server 3des-cbc hmac-sha1 zlib-ZT/51Pfwho1BDgjK7y7TUQ@public.gmane.org
15:50:06:941 SSH_MSG_KEXDH_INIT sent
15:50:06:942 expecting SSH_MSG_KEXDH_REPLY
15:50:07:565 ssh_rsa_verify: signature true
15:50:07:566 Permanently added '<server>' (RSA) to the list of known hosts.
15:50:07:566 SSH_MSG_NEWKEYS sent
15:50:07:566 SSH_MSG_NEWKEYS received
15:50:07:566 SSH_MSG_SERVICE_REQUEST sent
15:50:08:174 SSH_MSG_SERVICE_ACCEPT received
15:51:06:318 Disconnecting from <server> port 22
15:51:06:319 Exception stack strace:
com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: End of IO Stream Read
at com.jcraft.jsch.Session.connect(Session.java:534)
at com.jcraft.jsch.Session.connect(Session.java:162)

Could you kindly help to let me know what cause the issue and how to resolve it?

Thanks and Best Regards,
Viet
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
JSch-users mailing list
JSch-users@...
https://lists.sourceforge.net/lists/listinfo/jsch-users
Norbert Sensen | 24 Sep 09:39 2013
Picon

sporadic ArrayIndexOutOfBoundsException in com.jcraft.jsch.Channel.connect()

Hello,

we develop an integration-application which does very much sftp-traffic.
(About 20 connections every 5 minutes).
We are using jsch-0.1.46.jar

Very sporadically (about 1 time per week) we get the following Exception:

Caused by: com.jcraft.jsch.JSchException: 
java.lang.ArrayIndexOutOfBoundsException
     at com.jcraft.jsch.ChannelSftp.start(ChannelSftp.java:273)
     at com.jcraft.jsch.Channel.connect(Channel.java:152)
     at com.jcraft.jsch.Channel.connect(Channel.java:145)
     at

net.creditlife.clpm.infrastructure.impl.SFTPConnection.initConnection(SFTPConnection.java:80) 

Caused by: java.lang.ArrayIndexOutOfBoundsException: null
     at com.jcraft.jsch.Buffer.getByte(Buffer.java:148)
     at com.jcraft.jsch.Buffer.getString(Buffer.java:188)
     at com.jcraft.jsch.ChannelSftp.start(ChannelSftp.java:260)

What does this mean? What is the cause of the problem?
And most important: How can we avoid this?

We would be very happy if anyone could help us.
Thanks,
Norbert Sensen

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
Kishor.Golapelliwar | 11 Sep 00:30 2013

AUTO: Kishor Golapelliwar is out of the office (returning 16-09-2013)


I am out of the office until 16-09-2013.

I am on Personal leave from 06-09-2013  to 16-09-2013.
I wont be able to access mails and will have limited connectivity over
phone.

Note: This is an automated response to your message  "JSch-users Digest,
Vol 85, Issue 2" sent on 9/11/2013 1:02:54 AM.

This is the only notification you will receive while this person is away.

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
Erick Lichtas | 10 Sep 21:09 2013

Thread lockup downloading from XroadsSftpServer?

Hi everyone,

 

I have an application that utilizes JSCH 1.49 and am running into an interesting scenario.  We have a user of our application that is connecting to a server, downloading some data, and at the end of the download, perhaps right before reading the last packet, the process hangs indefinitely.  Most of the file is received, but some data is missing.  I suspect that problem is caused by the server as many other transfers within the same JVM run without fail against many other servers, but sporadic connections to this server ‘lock up’ and consume limited execution threads until the JVM is restarted.  I’ve attached the JSCH debug log and thread stack below. 

 

Do you have any insight as to what might be causing this lockup? Or perhaps what can be done to allow the local thread to timeout?

 

OS is RHEL

Linux 2.6.18-308.8.2.el5 (amd64)

 

Thread Stack

java.lang.Object              wait (Native Method)    Object.java       Not Available

com.jcraft.jsch.Session       write                   Not Available     Not Available

com.jcraft.jsch.ChannelSftp   sendREAD                Not Available     Not Available

com.jcraft.jsch.ChannelSftp   _get                    Not Available     Not Available

com.jcraft.jsch.ChannelSftp   get                     Not Available     Not Available

 

Debug Log

9/10/13 3:15:12 AM            DEBUG     Connecting to ***.***.***.*** port 22

9/10/13 3:15:12 AM            DEBUG     Connection established

9/10/13 3:15:12 AM            DEBUG     Remote version string: SSH-2.0-1.82 sshlib: XroadsSftpServer

9/10/13 3:15:12 AM            DEBUG     Local version string: SSH-2.0-JSCH_0.1.49

9/10/13 3:15:12 AM            DEBUG     CheckCiphers: aes256-cbc,aes192-cbc,aes128-cbc,3des-cbc,blowfish-cbc,twofish256-cbc,twofish-cbc,twofish192-cbc,twofish128-cbc,serpent256-cbc,serpent192-cbc,serpent128-cbc,arcfour,idea-cbc,cast128-cbc,des-cbc,arcfour128,arcfour256,aes128-ctr,aes192-ctr,aes256-ctr,3des-ctr,blowfish-ctr,twofish128-ctr,twofish192-ctr,twofish256-ctr,serpent128-ctr,serpent192-ctr,serpent256-ctr,idea-ctr,cast128-ctr

9/10/13 3:15:12 AM            DEBUG     CheckKexes: diffie-hellman-group14-sha1

9/10/13 3:15:12 AM            DEBUG     diffie-hellman-group14-sha1 is not available.

9/10/13 3:15:12 AM            DEBUG     SSH_MSG_KEXINIT sent

9/10/13 3:15:12 AM            DEBUG     SSH_MSG_KEXINIT received

9/10/13 3:15:12 AM            DEBUG     kex: server: diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1

9/10/13 3:15:12 AM            DEBUG     kex: server: ssh-dss

9/10/13 3:15:12 AM            DEBUG     kex: server: aes256-cbc,twofish256-cbc,twofish-cbc,aes128-cbc,twofish128-cbc,blowfish-cbc,3des-cbc,arcfour,cast128-cbc

9/10/13 3:15:12 AM            DEBUG     kex: server: hmac-sha1,hmac-md5,hmac-sha1-96,hmac-md5-96

9/10/13 3:15:12 AM            DEBUG     kex: server: zlib,none

9/10/13 3:15:12 AM            DEBUG     kex: client: diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1

9/10/13 3:15:12 AM            DEBUG     kex: client: ssh-rsa,ssh-dss

9/10/13 3:15:12 AM            DEBUG     kex: client: aes256-cbc,aes192-cbc,aes128-cbc,3des-cbc,blowfish-cbc,twofish256-cbc,twofish-cbc,twofish192-cbc,twofish128-cbc,serpent256-cbc,serpent192-cbc,serpent128-cbc,arcfour,idea-cbc,cast128-cbc,des-cbc,arcfour128,arcfour256,aes128-ctr,aes192-ctr,aes256-ctr,3des-ctr,blowfish-ctr,twofish128-ctr,twofish192-ctr,twofish256-ctr,serpent128-ctr,serpent192-ctr,serpent256-ctr,idea-ctr,cast128-ctr

9/10/13 3:15:12 AM            DEBUG     kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96

9/10/13 3:15:12 AM            DEBUG     kex: client: none,zlib

9/10/13 3:15:12 AM            DEBUG     kex: server->client aes256-cbc hmac-md5 none

9/10/13 3:15:12 AM            DEBUG     kex: client->server aes256-cbc hmac-md5 none

9/10/13 3:15:12 AM            DEBUG     SSH_MSG_KEXDH_INIT sent

9/10/13 3:15:12 AM            DEBUG     expecting SSH_MSG_KEXDH_REPLY

9/10/13 3:15:13 AM            DEBUG     ssh_dss_verify: signature true

9/10/13 3:15:13 AM            DEBUG     SSH_MSG_NEWKEYS sent

9/10/13 3:15:13 AM            DEBUG     SSH_MSG_NEWKEYS received

9/10/13 3:15:13 AM            DEBUG     SSH_MSG_SERVICE_REQUEST sent

9/10/13 3:15:13 AM            DEBUG     SSH_MSG_SERVICE_ACCEPT received

9/10/13 3:15:13 AM            DEBUG     Authentications that can continue: publickey,password,keyboard-interactive

9/10/13 3:15:13 AM            DEBUG     Next authentication method: publickey

9/10/13 3:15:13 AM            DEBUG     Authentications that can continue: password,keyboard-interactive

9/10/13 3:15:13 AM            DEBUG     Next authentication method: password

9/10/13 3:15:14 AM            DEBUG     Authentication succeeded (password).

9/10/13 3:15:15 AM            DEBUG     COMMAND: cd '/'

9/10/13 3:15:15 AM            DEBUG     REPLY: New working directory is '/'

9/10/13 3:15:15 AM            DEBUG     COMMAND: pwd

9/10/13 3:15:15 AM            DEBUG     REPLY: Current working directory is '/'

9/10/13 3:15:15 AM            INFO      Downloading '/prod_xrdint6_bai_091013' to '/home/prod_xrdint6_bai_091013'

9/10/13 3:15:15 AM            DEBUG     COMMAND: get '/prod_xrdint6_bai_091013' '/home/prod_xrdint6_bai_091013'

 

Thanks in advance!

 

ERICK LICHTAS

 

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
JSch-users mailing list
JSch-users@...
https://lists.sourceforge.net/lists/listinfo/jsch-users
gokulvsmail | 2 Sep 14:47 2013
Picon

Exceptio while calling method Session.connect()

hi,

Am using jsch0.1.50

jvm :1.6 hotspot
os: Linux

Am using the jsch lib for my J2ee web application deployed in jboss 5 
GA.while calling the method session.connect() a getting the exception as.

java.security.InvalidAlgorithmParameterException: Inappropriate 
parameter type
16:05:55,792 ERROR [STDERR]     at 
com.sun.crypto.provider.DHKeyPairGenerator.initialize(DashoA13*..)
16:05:55,792 ERROR [STDERR]     at 
java.security.KeyPairGenerator$Delegate.initialize(KeyPairGenerator.java:627)
16:05:55,792 ERROR [STDERR]     at 
java.security.KeyPairGenerator.initialize(KeyPairGenerator.java:369)
16:05:55,793 ERROR [STDERR]     at com.jcraft.jsch.jce.DH.getE(DH.java:57)
16:05:55,793 ERROR [STDERR]     at com.jcraft.jsch.DHG1.init(DHG1.java:122)
16:05:55,793 ERROR [STDERR]     at 
com.jcraft.jsch.Session.receive_kexinit(Session.java:577)
16:05:55,793 ERROR [STDERR]     at 
com.jcraft.jsch.Session.connect(Session.java:299)
16:05:55,793 ERROR [STDERR]     at 
com.jcraft.jsch.Session.connect(Session.java:162)

(I have added a printStackTrace() method in the Session class file for 
getting this stackTrace,i hope i doesn't make any issues).
And when i tried with removing the jce.jar from the lib folder of my web 
application am getting the app works fine.but while reading ur 
documentatio its specified that jce is a depedancy for jsch.

Please help me to find the right cause of this issue.

gokul

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk

Gmane