[ 
https://issues.apache.org/jira/browse/SSHD-1237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17480269#comment-17480269
 ] 

Thomas Wolf commented on SSHD-1237:
-----------------------------------

Looks like an OpenSSH server sends its keep-alive messages as channel requests 
or as global requests, and expects a non-success reply at least for channel 
requests. Simply logging only at debug level when the request name starts with 
"keepalive@" or "keep-alive@" and log.isDebugEnabled() might be good enough.

Do you want to provide a PR on [Github|https://github.com/apache/mina-sshd]?

> SftpClient logs warnings on keepalive messages
> ----------------------------------------------
>
>                 Key: SSHD-1237
>                 URL: https://issues.apache.org/jira/browse/SSHD-1237
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 2.8.0
>            Reporter: Jens Grassel
>            Priority: Minor
>
> Hi,
> we just noticed that using the default SshClient we get lots of warning 
> messages in our logs about keep alive requests like this:
> {noformat}
> 08:55:32.122 [sshd-SshClient[40b05dd]-nio2-thread-2] WARN 
> o.a.s.s.c.i.DefaultSftpClient$SftpChannelSubsystem - 
> handleUnknownChannelRequest(SftpChannelSubsystem[id=0, 
> recipient=0]-ClientSessionImpl[XXX@XXX/XXX:22][sftp]) Unknown channel 
> request: keepal...@openssh.com[want-reply=true]
> {noformat}
> We're using the {{SshClient.setUpDefaultClient()}} function then create our 
> session and finally use the {{createSftpClient(session)}} function on a 
> SftpClientFactory.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to