Giter Club home page Giter Club logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
I suppose my problem is related to this reported issue.

When I use the Connection.authenticateWithPublicKey(...) method, it does not 
work for local IP addresses:
Authentication failed.
java.lang.IllegalStateException: Cannot open session, connection is not 
authenticated.
        at ch.ethz.ssh2.Connection.openSession(Connection.java:1095)   // -> without patch
        at ch.ethz.ssh2.Connection.openSession(Connection.java:1120)  // -> with patch
        at trial.main(trial.java:52)

There is no problem with the connections to remote addresses, or when I use the 
Linux ssh command in CLI, or Connection.authenticateWithPassword(...).

I also applied the suggested patch, but did not help. Could it be a different 
issue?

Thanks!


Original comment by [email protected] on 14 Mar 2014 at 9:17

from ganymed-ssh-2.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
Your issue is probably something else. I'm not sure what you mean with local IP 
address in your context, but it sound like you have problems when you connect 
to IP for an interface on your own machine.

In some scenarios with firewalls etc, these will filter out IP packages with 
wrong source addresses. The proposed bindSourceAddress() method is used before 
connect() to bind the local address to the socket before connecting to a 
"remote" address. This to be able to have a allowed source address for these 
firewalls.

Since you can connect "remotely", this is probably not your issue. 

Original comment by [email protected] on 14 Mar 2014 at 10:12

from ganymed-ssh-2.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024

Original comment by [email protected] on 8 Apr 2014 at 11:29

  • Changed state: Invalid

from ganymed-ssh-2.

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.