Giter VIP home page Giter VIP logo

Comments (5)

norrisjeremy avatar norrisjeremy commented on August 15, 2024

Hi @austinarbor-wk,

Yes, I suspect this server doesn't correctly support RSA/SHA-2 and it is failing when JSch attempts RSA/SHA-2 based authentication. So you either will want to remove the RSA/SHA-2 algorithms (rsa-sha2-512 & rsa-sha2-256) from the PubkeyAcceptedAlgorithms config setting, or make sure RSA/SHA-1 (ssh-rsa) has a higher priority by appearing earlier in the comma delimited list for the PubkeyAcceptedAlgorithms config setting.

Thanks,
Jeremy

from jsch.

austinarbor-wk avatar austinarbor-wk commented on August 15, 2024

@norrisjeremy thanks for your quick response! We use a generalized "works-for-everyone" config and the same code is also used for servers which do support rsa-sha2-512 and rsa-sha2-256 and we don't know ahead of time what the server will support. Do you think moving ssh-rsa ahead in the priority list will make those no longer work, or should it essentially be a no-op?

from jsch.

norrisjeremy avatar norrisjeremy commented on August 15, 2024

Hi @austinarbor-wk,

If the other types of servers you connect to support both RSA/SHA-2 and RSA/SHA-1, by prioritizing RSA/SHA-1 in the list, you will coercing JSch into performing insecure authentication with these servers (since RSA/SHA-1 is generally considered cryptographically insecure).
Ultimately this will be a judgement call that only you can make, since only you better the nature of your application, the type servers you are connecting to, etc., and not us.

Thanks,
Jeremy

from jsch.

austinarbor-wk avatar austinarbor-wk commented on August 15, 2024

@norrisjeremy thanks for the info, appreciate the quick responses!

from jsch.

austinarbor-wk avatar austinarbor-wk commented on August 15, 2024

confirming that moving ssh-rsa in front of the other rsa algorithms resolved the exception

from jsch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.