[JSch-users] Bug in SFTP file type parsing

2011-02-15 Thread Peter Kraft
Hey Guys, I've found (and fixed) a bug in the jsch SFTP code that parses the file type attributes returned from the server. The bit masking logic is not quite correct. This will manifest itself by incorrectly labeling a socket file type as a directory. To reproduce the problem, just use the Cha

Re: [JSch-users] How to convert SSHTOOL private key to OpenSSH format

2011-02-15 Thread Viet H. Phan
Hi Ike, I think you can use either J2SSH Maverick or opensource J2SSH API to do that. 1) J2SSH Maverick: http://www.sshtools.co.uk/en/j2ssh-maverick/Use this method: http://www.sshtools.co.uk/content/developer/maverick/docs/com/sshtools/publickey/SshPrivateKeyFileFactory.html#convertFile(java.io.F

Re: [JSch-users] Progress for deploying 0.1.44 to maven-central?

2011-02-15 Thread Atsuhiko Yamanaka
Hi, The latest JSch version(0.1.44) has appeared in Maven Central repo, at last. Thank you for everyone who helped me to deploy it there. Sincerely, -- Atsuhiko Yamanaka JCraft,Inc. 1-14-20 HONCHO AOBA-KU, SENDAI, MIYAGI 980-0014 Japan. Tel +81-22-723-2150 +1-415-578-3454 Skype callto://jcra

[JSch-users] Optimizing JSch SSH Shell IO Performance

2011-02-15 Thread William Bathurst
This is in regards to shell mode. I wish to be able to optimize performance, mainly in regards to receiving data back from the output stream. This is code I have cobbled together from examples. It reads both STDIN and STDERR. I assume the only way to optimize would be to decrease the thread wait t

Re: [JSch-users] put large binary file with compression cause java.lang.ArrayIndexOutOfBoundsException, slow performance when doing get with compression

2011-02-15 Thread Atsuhiko Yamanaka
Hi, +-From: Nguyen Tran Vu Linh -- |_Date: Mon, 14 Feb 2011 23:31:35 -0800 (PST) ___ | |Thank you for your update, I got the same exception as Xiao. |In my case, file type is .pgp and its size >=100KBs with compression |enabled. |I downloaded http://www.jcraft.com/js

Re: [JSch-users] problem with known_hosts file

2011-02-15 Thread Atsuhiko Yamanaka
Hi, +-From: "FRUNZA, ADRIANA (ADRIANA)" -- |_Date: Tue, 15 Feb 2011 13:56:51 +0100 __ | |I am using Jsch version 1.43 for SSH with J2SE 1.6 and I have met the |follo wing problem. My application has a problem in reading the following |format of k

Re: [JSch-users] setPortForwardingL not working for MySQL

2011-02-15 Thread Atsuhiko Yamanaka
Hi, +-From: bob manc |_Date: Tue, 15 Feb 2011 10:37:33 -0500 __ | |This is what I am doing... |Lets say my remote server is at "dev.myserver.com". |I have MySQL and Tomcat running on it. Port 22 and 80 are open on it. ... |lport = 3306; |rhost = "dev.myserver.com

Re: [JSch-users] put large binary file with compression cause java.lang.ArrayIndexOutOfBoundsException, slow performance when doing get with compression

2011-02-15 Thread Jingran Xiao
Hi: I applied the jsch-0.1.45 code, it did not fixed the problem. I tried to send you my test file which is 100MB, and it is exceeding the 50MB limit for my email. so it never get thru. I am thinking maybe the failure has to do with certain file, because I can always get the exception when I r

Re: [JSch-users] How to convert SSHTOOL private key to OpenSSH format

2011-02-15 Thread Ike Ikonne
Hi Viet, Thanks so much in your response; okay, here is the deal, I have a private key in the following format --- BEGIN SSHTOOLS ENCRYPTED PRIVATE KEY Comment: 1024-bit dsa Subject: CDNERVMtQ0JDGKeSLe6w6YcAAAFQkSiSE3yNQCGHBRJ8FFURPW6VsFil6s5TcPilj8PzZeeq tHvTFVIQNz+JTwZc5Hg5j

[JSch-users] setPortForwardingL not working for MySQL

2011-02-15 Thread bob manc
This is what I am doing... Lets say my remote server is at "dev.myserver.com". I have MySQL and Tomcat running on it. Port 22 and 80 are open on it. JSch jsch = new JSch(); jsch.addIdentity("dev.pem"); String user = "root"; String host = "dev.myserver.com"; int sshPort = 22; Session session = j

[JSch-users] problem with known_hosts file

2011-02-15 Thread FRUNZA, ADRIANA (ADRIANA)
Hello, I am using Jsch version 1.43 for SSH with J2SE 1.6 and I have met the following problem. My application has a problem in reading the following format of known_hosts file: 188.75.128.9 ssh-rsa B3NzaC1yc2EBIwAAAQEAmfqHByMHTshmvyKaGr0FMXKcLvaK3oEokPAjq/9P/uoJf62QPNrLQ0xJ5MgYmlXrV