GithubHelp home page GithubHelp logo

Comments (2)

shikhar avatar shikhar commented on May 31, 2024

Looks like this bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=495917

Try with

ssh.getConnection().setWindowSize(4 * 1024);

before exec'ing, or maybe upgrade the device software.

from sshj.

eliasjsalves avatar eliasjsalves commented on May 31, 2024

Hi Shikhar. Thanks for reply.

Unfortunately it did not work. I changed the code to:

ssh.connect("192.168.10.5");
ssh.getConnection().setWindowSize(4096); //also tested with larger and smaller sizes
ssh.authPassword("user", "pass");

The weird fact is that the error varies according to the equipment version:

BlackDiamond8810 - SO: ExtremeXOS version 12.1.3.14 (SSH-2.0-4.1.2) don't works
Summit48si - SO: Version 7.7.4 (SSH-2.0-2.0.12) don't works
SummitX480 - SO: ExtremeXOS version 12.5.4.5 (SSH-2.0-4.1.2) works

The BD8810 causes the error described in the previous message.
The Summuit48i causes an exception: [SERVICE_NOT_AVAILABLE] Disconnected; server said: sshd: exec not supported.
The SummitX480 throws "SSH_MSG_IGNORE" but works.

I guess it's may be caused by the "old" version of the OS.
It is possible, after the user auth, send a command on "brute force" mode, ignoring error messages or something like that?

I tried MindTerm SSH lib and for some reason it works, but I really prefer to use yours.

Thanks again.
Elias

from sshj.

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.