Giter VIP home page Giter VIP logo

Comments (4)

tomaswolf avatar tomaswolf commented on June 2, 2024

Setting a "global request" handler for keep-alives has only an effect on global requests. It has no effect on channel requests. OpenSSH prefers to send keep-alive messages a channel requests if a channel is open, and then expects a failure reply.

Apache MINA SSHD actually behaves like OpenSSH expects; the only problem is that it logs this warning. That's issue SSHD-1237.

I don't think your problem is related to this warning. But I don't know what might cause your problem; it looks like your code is reading from a ChannelAsyncInputStream when that stream is being closed. Why it is being closed I cannot tell.

from mina-sshd.

coderZoe avatar coderZoe commented on June 2, 2024

Setting a "global request" handler for keep-alives has only an effect on global requests. It has no effect on channel requests. OpenSSH prefers to send keep-alive messages a channel requests if a channel is open, and then expects a failure reply.

Apache MINA SSHD actually behaves like OpenSSH expects; the only problem is that it logs this warning. That's issue SSHD-1237.

I don't think your problem is related to this warning. But I don't know what might cause your problem; it looks like your code is reading from a ChannelAsyncInputStream when that stream is being closed. Why it is being closed I cannot tell.

I think I understand why the connection was actively disconnected because the server's sshd_config is configured with ClientAliveInterval 600. Regarding your second issue, to resolve the warning logs like o.a.sshd.client.channel.ChannelShell - handleUnknownChannelRequest(ChannelShell[id=0, recipient=0]-ClientSessionImpl[admin@/10.252.146.106:61122]) Unknown channel request: [email protected][want-reply=true], I looked at the Jira link you provided. This means the KeepAliveHandler.INSTANCE I set in globalRequestHandlers did not affect individual channels. If I want it to work and avoid these warnings, do I need to add a request handler for each channel and implement logic similar to KeepAliveHandler.INSTANCE within them?

from mina-sshd.

tomaswolf avatar tomaswolf commented on June 2, 2024

Basically yes, but see #492. The next version of Apache MINA SSHD will handle these channel requests and no longer log the warning.

As I wrote, I don't think your problem is related to this warning.

from mina-sshd.

coderZoe avatar coderZoe commented on June 2, 2024

Basically yes, but see #492. The next version of Apache MINA SSHD will handle these channel requests and no longer log the warning.

As I wrote, I don't think your problem is related to this warning.

thanks

from mina-sshd.

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.