Activity for JSch

  • Ramkumar Ramkumar created ticket #41

    Incorrect password during login makes twice login attempts

  • Rethinakumar Ramachandran Rethinakumar Ramachandran created ticket #137

    JSch - Auth Fail - Private Key - RHEL 8 and FIS implemented in Server

  • Rethinakumar Ramachandran Rethinakumar Ramachandran posted a comment on ticket #135

    I am also facing a same issue, Not working for me even if i change to 2 I am getting Auth Fail. RHEL 8 (FIS security system) enabled in server. Any one can help to connect it?

  • lhw lhw posted a comment on discussion Help

    Hi, Does anyone know if this library has reached EOS and if so, when?

  • John Giltner John Giltner posted a comment on ticket #136

    Thanks for updating with the <lf> vs. <crlf> issue. We just noticed this and I was getting ready to update when I saw your post. </crlf></lf>

  • Wyatt Wyatt posted a comment on ticket #136

    There are two related issues here, both of which prevent connecting to Microsoft's Azure SFTP server, and presumably others which are strict to the RFCs. The client version string as listed above, and using a single LF vs. CR+LF after it. Fixing these two issues allows connection to Azure. Both changes are in Session.java. Line 71: private byte[] V_C=Util.str2byte("SSH-2.0-JSCH-"+JSch.VERSION); // client version needs to change to: private byte[] V_C=Util.str2byte("SSH-2.0-JSCH_"+JSch.VERSION); //...

  • John Giltner John Giltner posted a comment on ticket #102

    I know this is old, but it appears that you are using CoZ:SFTP on the z/OS side. Can you try specifying the remote file as: /-/!DTS4.UP.G5TB.S60301 This is one of the documented formats for specifying z/OS file names in the CoZ:SFTP documentation.

  • John Giltner John Giltner created ticket #136

    Identification string invalid based on RFC4253

  • Bernhard Falk Bernhard Falk posted a comment on ticket #10

    Hello ! Can you give me a hint how to applicate the patch using the "patch" comand in linux terminal ? Or is there an other way to get a patched JSCH ? Thanks in advance Bernhard

  • Denis Bredelet Denis Bredelet posted a comment on discussion Help

    The source code is not public. See: https://www.eclipse.org/lists/cross-project-issues-dev/msg16219.html Although, here is what looks like Jsch 0.1.55 source code: https://download.eclipse.org/oomph/archive/reports/download.eclipse.org/releases/2021-09/index/com.jcraft.jsch.source_0.1.55.v20190404-1902.html

  • Imran Murtaza Imran Murtaza posted a comment on discussion Open Discussion

    Hi there! I have a connecting issue in my server using this. Can anyone please help me out. Thanks

  • Jesse Gorzinski Jesse Gorzinski created ticket #135

    Invalid privatekey with latest version of PuTTY

  • Michael C Golledge Michael C Golledge posted a comment on ticket #130

    This looks very much like a threading issue since the reproduction is so unpredictable. For a while, I thought this was caused by our own app threads, or a failure of the library to protect itself from being used in a multithreaded context. But, as my test case evolved, it became apparent that it was not our use of threads causing the problem. I synchronized all the JSch calls so that only a single one of our threads can use the lib at a time, and it still reproduced. Since app threads are reduced...

  • Tanmay Majumdar Tanmay Majumdar created ticket #134

    java.net.SocketException: Socket is not connected (Read failed)

  • gaowenzhi gaowenzhi created ticket #40

    What can cause the ssh connection exit when I create the ssh with jsch

  • Mohammed Shabbir Mohammed Shabbir posted a comment on ticket #39

    on further analysis, its found that the issue is due to wildcard character ( * ) due to which glob_remote throws ArrayIndexOutOfBoundException. workaround do ls and give complete file name as paramter to get method. followed below steps 1. set change directory 2. do ls to get all the files (its available in vectors) 3. give complete file name as source for the get method

  • Mohammed Shabbir Mohammed Shabbir posted a comment on ticket #39

    i'm able to bypass that issue by setting the change directory on the sftp channel. So this ticket can be closed but it will be good if we can find a way to reset the buffer externally so that it doesn't throw ArrayIndexOutOfBoundException

  • Mohammed Shabbir Mohammed Shabbir created ticket #39

    ArrayIndexOutOfBoundException occurring while using Jsch sftp channel

  • Eugen Eugen modified a comment on ticket #132

    We also experienced that session.connect() hangs indefinitely (with versions 0.1.49 and 0.1.55) before connect() the timeout was set (with session.setTimeout()) but this timeout has no effect during the authentication in connect() We did find a workaround (by configuring a different order of authentication methods) but the issue of hanging should be addressed nevertheless. Our suggestion: the configured session timeout should also terminate long connect() or there need to be another possibility to...

  • Eugen Eugen posted a comment on ticket #132

    We also experienced that session.connect() hangs indefinitely. before connect() the timeout was set (with session.setTimeout()) but this timeout has no effect during the authentication in connect() We did find a workaround (by configuring a different order of authentication methods) but the issue of hanging should be addressed nevertheless. Our suggestion: the configured session timeout should also terminate long connect() or there need to be another possibility to configure authentication timeout...

  • RAMAKRISHNA BAKALE RAMAKRISHNA BAKALE created ticket #133

    multiple sessions, channel inputstream read, hangs forever

  • Simone Simone created ticket #132

    Session.connect() hangs without any timeout and response. It blocks the whole JVM

  • Diego Scaravaggi Diego Scaravaggi modified a comment on discussion Help

    Hi All, in the source code of ChannelSftp.java, the method quit(), just disconnect channell client side. Some sftp server implement QUIT verb for explicit close session. the difference is only that after sending QUIT all resources are deallocated from server, just close channell peer side keep sockets in FIN wait for some minutes. In case of massive login logout session with ChannelSftp.java, sftpserver DDOS protection throttle disable the access or in some cases get exhausted connections. Why not...

  • Diego Scaravaggi Diego Scaravaggi posted a comment on discussion Help

    Hi All, in the source code of ChannelSftp.java, the method quit(), just disconnect channell client side. Some sftp server implement QUIT verb for explicit close session. the difference is only the after sending QUIT all resources are deallocated from server, just close channell peer side keep sockets in FIN wait for some minutes. In case of massive login logout session with ChannelSftp.java, sftpserver DDOS protection throttle disable the access or in some cases get exhausted connections. Why not...

  • Alex Stumpf Alex Stumpf created ticket #131

    Documentation: Missing HMAC in Feature list

  • ravi ravi posted a comment on discussion Open Discussion

    Hi, One of our plugin is using the following jars: jsch-0.1.49.jar jsch-0.1.55.jar We want to confirm if the above jars have support for java 11 or not? any help would be highly appreciated. Thanks & Regards, Ravi

  • ravi ravi posted a comment on discussion Open Discussion

    Hi, I need to confirm, whether jsch-0.1.55.jar is suported on OPEN JDK platform or not? Any suggestion would be highly appreciated. Thanks, Ravi

  • Björn Kautler Björn Kautler posted a comment on ticket #8

    Nice @matez, does this fully support it though? local port => remote socket local socket => remote socket local socket => remote port remote port => local socket remote socket => local socket remote socket => local port From a quick look it seems you are only providing a small subset.

  • Lorinczy Zsigmond Lorinczy Zsigmond created ticket #13

    Unix line-end in PPK files

  • Lorinczy Zsigmond Lorinczy Zsigmond posted a comment on ticket #119

    Mind you, the fork uses Java8+ features, while the original can be compiled with Java5

  • vikas jain vikas jain posted a comment on ticket #98

    I am struggling with this NLP issue for past 5 days. Any resolution to issue ?

  • Radu Coravu Radu Coravu posted a comment on ticket #129

    Thanks Tobias, I will keep this in mind.

  • Tobias Hochgürtel Tobias Hochgürtel posted a comment on ticket #129

    Hello Radu Coravu, It looks like that there is now someone how forked this project https://sourceforge.net/p/jsch/bugs/119/#efc6

  • Tobias Hochgürtel Tobias Hochgürtel posted a comment on ticket #119

    The correct link to the fork is: https://github.com/mwiede/jsch (witout a dot at the end) :)

  • Jeremy Norris Jeremy Norris posted a comment on ticket #119

    rsa-sha2-256 & rsa-sha2-512 as per RFC 8332 has been implemented in fork at https://github.com/mwiede/jsch.

  • Matthias Wiedemann Matthias Wiedemann posted a comment on ticket #11

    +1

  • Matthias Wiedemann Matthias Wiedemann posted a comment on ticket #8

    I extended jsch ith your requested feature. Please checkout https://github.com/mwiede/jsch

  • Venugopal Tatavarthi Venugopal Tatavarthi created ticket #130

    We get such a com.jcraft.jsch.JSchException: verify: false when we want to connect to an SshSession

  • Radu Coravu Radu Coravu posted a comment on ticket #129

    +1 we are also interested in having this work for SFTP connections.

  • Wolfgang Fahl Wolfgang Fahl posted a comment on ticket #11

    Please move to github ...

  • Andreas Zingel Andreas Zingel posted a comment on ticket #98

    The same problem here with Jsch Sat Sep 03 18:41:49 JST 2016 version=0.1.54 and Mon Nov 26 10:15:11 JST 2018 version=0.1.55 on Windows 10 with Cygwin64 and OpenSSH We are using an by passphrase encrypted PKCS8 private key. In KeyPairPKCS8 this structure cannot be read /* from RFC5208 PrivateKeyInfo ::= SEQUENCE { version Version, privateKeyAlgorithm PrivateKeyAlgorithmIdentifier, privateKey PrivateKey, attributes [0] IMPLICIT Attributes OPTIONAL } The ASN.1 structure has only one member. Thus we...

  • Lothar Kimmeringer Lothar Kimmeringer posted a comment on ticket #108

    Why do you see that as a problem? Theis method's purpose is to send an absolute path. So it's checked if the given path is absolute and if not, the working directory is added in front. That's exactly what's happening with your example, so the path being sent to the server is e.g. /home/myuser/../../../etc/password. There are completely valid reasons why you want to send a path like this to a server, it's the server's obligation to restrict access to /etc/password no matter how the path is received...

  • eed3si9n eed3si9n created ticket #129

    "JSchException: invalid privatekey" on OpenSSH 7.8 and above

  • hrushi hrushi created ticket #38

    Ciphers support in JSCH

  • don_pavlov don_pavlov created ticket #11

    Move to github

  • don_pavlov don_pavlov posted a comment on ticket #7

    Would really love to see this change, because juice-ssh seems to rely on that to be working first in jsch.

  • Paul Titheridge Paul Titheridge created ticket #128

    Thread hangs in ChannelSftp.skip() following internal OutOfOrderException

  • Marina Frid Marina Frid posted a comment on ticket #113

    We see the same issue intermittently. It seems to get into infinite loop when c.rwsize=0; Not sure why this is happening but for sure code shouldn’t get into never ending loop. Does anyone know how rwsize variable didn't get changed from 0? Was there any fix for this issue after 1.54?

  • Saranya Saranya posted a comment on discussion Help

    Any updates on this?

  • Saranya Saranya posted a comment on discussion Help

    Workaround to find owner name: String longName = file.getLongname(); String[] attrs = longName.split("\\s+"); String ownername = attrs[2]; where file is an instance of LsEntry returned by the ChannelSFTP.ls

  • manish manish posted a comment on discussion Help

    Hi, We are getting randomly occuring error "org.eclipse.jgit.api.errors.TransportException: <gitlab_ssh_repo_url>/automate.git: channel is not opened." We are not able to identify the exact cause or not able to reproduce this behaviour evry time. We are using SSh to connect to the repo and connecting through jgit liberary. We have observed this behaviour specific to GitLab and not for github and bitbucket. Any help would be appriciated.</gitlab_ssh_repo_url> Thanks

  • Saranya Saranya posted a comment on discussion Help

    I was able to resolve this using the following new Date((long)file.getAttrs().getMTime()*1000L) where file is an instance of ChannelSftp.LsEntry

  • Saranya Saranya posted a comment on discussion Help

    How to get a remote file's last modified time? I am using the following but it shows date with year 1970 only. int mtime = entry.getAttrs().getMTime(); Date date = new Date (mtime); When printed the date is "Mon Jan 19 09:09:10 IST 1970". What should be changed here to find the exact last modified time?

  • Saranya Saranya posted a comment on discussion Help

    Using SftpATTRS.getUId(), it is possible to get only the user id. How to fetch the user name corresponding to the id?

  • sajeesh sajeesh posted a comment on discussion Help

    Hi Team, One of the customer is connecting to the SFTP server to transfer files and intemmittently they are recieving below error messages " *java.io.IOException: End of IO Stream Read....en..i.N%J'" . The same error message is in the TCP dump also . The customer is using JSCH 0.1.51 and connecting to a globalscape EFT SFTP server . This issue is intermmittent and some time they are able to transfer files or can connect to sftp without any issues . Anyone aware of this error message relate to JSCH...

  • dgu dgu posted a comment on ticket #37

    Even if I create new Session instance in each connection "java.net.ConnectException: Cannot assign requested address" happened again. It is a problem in my socket factory. The real problem is that if Session instance is reconnected then "com.jcraft.jsch.JSchException: Packet corrupt" happens. Workaround: Create a new Session instance for each connection.

  • dgu dgu posted a comment on ticket #37

    Th above test cases are done after I fixed my socket factory.

  • dgu dgu posted a comment on ticket #37

    Hello! I found a problem in my socket factory that It was trying to reuse socket closed by JSch. Here are the results of my test cases: With socket factory: 1- session.connect() --> works 2- session.disconnect() --> works immediately after disconnect 3- session.connect() --> "java.net.ConnectException: Cannot assign requested address" 1 minute later: 4- session.connect() --> "com.jcraft.jsch.JSchException: Packet corrupt" I'm not sure; but, it looks JSch can not handle disconnect properly and I got...

  • dgu dgu created ticket #37

    "java.net.SocketException: Socket is closed" in next Session.connect()

  • Anantharaman G Anantharaman G created ticket #127

    Thread running forever

  • Fernando Rodriguez Fernando Rodriguez created ticket #126

    cisco catalyst

  • ninshiichinoe ninshiichinoe posted a comment on ticket #125

    Ticket can be closed, it is working when I use: //TIxxAxx.Sxx.I.Axxx16x.xxx1.P111333 instead of: '//TIxxAxx.Sxx.I.Axxx16x.xxx1.P111333'

  • ninshiichinoe ninshiichinoe created ticket #125

    JSch SFTP get MVS file from IBM z/OS fails: 2: No such file

  • hrushi hrushi posted a comment on discussion Open Discussion

    Hi, sFTP servers provide capability of authentication using both password and private key (Two factor authentication for ssh). Does JSCH supports this? Thanks, Hrushi

  • Iger Iger posted a comment on ticket #10

    Hey! It's been some time, but if I remember correctly, nistp-256 was working out of the box (that was the actually hardcoded part). On Thu, Mar 14, 2019 at 11:36 AM Vineeth Chinmay Karra redviper@users.sourceforge.net wrote: Hello. Do you have any similar patch for ecdsa-sha2-nistp256 host key algorithm? [patches:#10] https://sourceforge.net/p/jsch/patches/10/ ecdsa 384 and 521 key verification broken* Status: open Group: Unstable (example) Created: Thu Apr 13, 2017 01:59 PM UTC by Iger Last Updated:...

  • Vineeth Chinmay Karra Vineeth Chinmay Karra posted a comment on ticket #10

    Hello. Do you have any similar patch for ecdsa-sha2-nistp256 host key algorithm?

  • Sanjeev Kulkarni Sanjeev Kulkarni posted a comment on discussion Help

    Hi, We use Jsch in production in our aws envs, tested for transfers upto 80GB so far. Working on making it bigger. What's the transfer limit in JSch in one "transfer" thread? Thanks, Sanjeev

  • Sanjeev Kulkarni Sanjeev Kulkarni posted a comment on discussion Open Discussion

    Hi, We use Jsch in production in our aws envs, tested for transfers upto 80GB so far. Has anyone tested with terra bytes of data, in single transfer process (instead of dividing files into chunks and then merging them). In the latter case, there'll be complicatied handling in cases of failures, retry attempts etc./ What's the transfer limit in JSch in one "transfer" thread? Thanks, Sanjeev

  • Sophie Stratton Sophie Stratton created ticket #12

    Allow users to set alternate password encodings

  • Jonathan Jonathan created ticket #124

    SSH Connection Timeout and Socket Connection Timeout seems to be not working on jsch-0.1.55.jar

  • SJ SJ created ticket #36

    Supported SSH/SCP options

  • Erin Brewer Erin Brewer posted a comment on discussion Help

    How about this, can anyone try connecting JSCH to eom-cbk-sftp-nlb-prod-2a0d6b9118dd64bf.elb.us-east-1.amazonaws.com and see if its successful or not? put in a dummy login/password as i don't think its even getting that far.

  • Tomas Danek Tomas Danek created ticket #123

    Jsch Identification string not by the RFC 4253 spec

  • Dylan Katz Dylan Katz created ticket #11

    Added support for 256 bit HMAC

  • Anil  Pandey Anil Pandey posted a comment on ticket #35

    com.jcraft.jsch.JSchException: SSH_MSG_DISCONNECT: 2 Protocol error: no matching DH grp found at com.jcraft.jsch.Session.read(Session.java:1004) at com.jcraft.jsch.Session.connect(Session.java:323) at com.jcraft.jsch.Session.connect(Session.java:183)

  • Anil  Pandey Anil Pandey created ticket #35

    jsch 0.1.54 SSH_MSG_DISCONNECT: 2 Protocol error: no matching DH grp found

  • Erin Brewer Erin Brewer posted a comment on discussion Help

    Any thoughts or opinions? If i could get someone just to say yay/nay about the protocal/library/version compatability being the likely culprit or if something else obvious is missing that would be much appreciated.

  • Ashuickor Hendelson Ashuickor Hendelson posted a comment on ticket #34

    I created a duplicate in "Feature Requests". Please remove this ticket here. Thank You.

  • Ashuickor Hendelson Ashuickor Hendelson created ticket #10

    Signature with an external private key

  • Ashuickor Hendelson Ashuickor Hendelson posted a comment on ticket #34

    One more thing: I'm talking about setPrvKey (not setPubKey)

  • Ashuickor Hendelson Ashuickor Hendelson posted a comment on ticket #34

    Sorry: Wrong Category. I don't know how to move it to the Feature Requests

  • Ashuickor Hendelson Ashuickor Hendelson created ticket #34

    Signature with an external private key

  • Erin Brewer Erin Brewer posted a comment on discussion Help

    Oh, and sometimes it hangs at the very beginning of the process and i get nothing in the logs at all. In this case it sits forever (longested i waited was 5 minutes) until i kill the process. And then randomly it will switch to the other mode originally described above.

  • Erin Brewer Erin Brewer posted a comment on discussion Help

    Stuck trying to figure out why can't connect to a particular host (amazon aws if that matters). Can connect to other SFTP sites. Would very much appreciete some help, i've tried every combination of suggestion even vaguely related to this. I've upgraded JSCH from 1.54 to 1.55 (from posts concerning signature bugs with ecdsa-sha2-nistp384). Running Java 1.8.0_144 From the posts i've found, the error in the logs "timeout in waiting for rekeying process" is related to timeout waiting for interactive...

  • hrushi hrushi posted a comment on discussion Help

    Sorry for inconvience Michael. But I was not sure where to open the request for assistent so I opened one at here and another one in support.

  • Michael Osipov Michael Osipov posted a comment on discussion Help

    Why are you writing this twice? Here and in bug tickets? This is unprofessional.

  • hrushi hrushi posted a comment on discussion Help

    Hi, We know that JSCH lib supports the Kerberos authentication. So We need help on below questions on same - - from which version of JSCH lib Kerberos authentication supported - Is Kerberos authentication by default supported? or we need to set some parameter while executing the sftp command through code to enable the Kerberos authentication. - What additional things we need to take care while executing sftp command through Kerberos authentication. It would be really helpful if you have some document...

  • hrushi hrushi created ticket #33

    JSCH Lib kerberos authentication

  • Michael Osipov Michael Osipov modified a comment on ticket #122

    I have retried the very same opration with wagon-ssh-external which uses ssh(1). No hang here. So must be an issue with JSch. See details in downstream issue.

  • Michael Osipov Michael Osipov posted a comment on ticket #122

    I have retried the very same opration with wagon-ssh-external which uses ssh(1). No hang here. So must be an issue with JSch.

  • Michael Osipov Michael Osipov modified a comment on ticket #122

    This new code has been introduced in WAGON-537. The fundamental difference is that the previous code request to stream the only remaining amount of bytes and the new one the at most the amount of bytes available to the buffer which is more than 916,

  • Michael Osipov Michael Osipov posted a comment on ticket #122

    This new code has been introduced in WAGON-537. The fundamental difference is that the previous code request to stream the only remaining amount of bytes and the new one at most the amount of bytes available to the buffer which is more than 916,

  • Michael Osipov Michael Osipov created ticket #122

    JSch input stream hands on repeated reads after EOF

  • Rahul Makwana Rahul Makwana posted a comment on ticket #111

    Good Job Jurrie.Don't get disappointed with JSch team.Keep up the Good work. You have helped many individual Groups in resolving this way before JSch team came up with solution.:)

  • SuperPat SuperPat created ticket #121

    Jsch does not throw exception when no space available

  • shayas shayas posted a comment on discussion Help

    Overview: End of IO Stream Read when expecting SSH_MSG_KEX_DH_GEX_GROUP The question: I would like to know if I can make some adjustments or that jsch lacks the kex alogrithm I need. Details: 1. I know that the remote machine is conifgured with kex key size of 8192. logs: 2018-12-13 11:43:51,260 Connecting to 192.168.81.127 port 22 2018-12-13 11:43:51,260 Connection established 2018-12-13 11:43:51,275 Remote version string: SSH-2.0-UeI70aCAZ 2018-12-13 11:43:51,275 Local version string: SSH-2.0-JSCH-0.1.53...

  • Michael Cunningham Michael Cunningham posted a comment on discussion Help

    I have an Windows/Java application which executes commands on a linux box. One particular command kills processes, but this intermittently fails, just does nothing, not even an exception. public static Session getSession(String ipAddressOfLinuxBox) { try { JSch jsch = new JSch(); Session session = jsch.getSession("root", ipaddress, 22); session. setPassword("blahblah"); session.setConfig("StrictHostKeyChecking"; "no"); } catch (JSchException je) {throw je;} } public static List<string> executeExecCommand(String...

  • Jurrie Overgoor Jurrie Overgoor posted a comment on ticket #111

    It's been a while since I wrote my fix, so the details are a bit vague. But I wrote a unit test that fails on 0.1.54 with the error in question, and succeeds on 0.1.55. So I think the 0.1.55 release does actually fix this issue. I'm a little bit disappointed that the JSch team did not contact me, or mention me. Oh well, that's life I suppose :)

  • Guenther Demetz Guenther Demetz posted a comment on ticket #111

    The release notes of jsch-0.1.55 which was released 3 days ago among other says: -bugfix: fixed 'Invalid encoding for signature' errors in ssh-dss. I 'm wondering if this fixes also this issue....

  • JSch JSch released /jsch.jar/0.1.55/jsch-0.1.55.jar

1 >
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.