[
https://issues.apache.org/jira/browse/KARAF-6918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17245371#comment-17245371
]
Rastislav Papp edited comment on KARAF-6918 at 12/7/20, 5:41 PM:
-----------------------------------------------------------------
I stumbled upon a similar problem - I tried to connect to karaf with a java
client via ssh (using jsch), and execute a command. Karaf SSH server logged
this exception at the end:
{code}
2020-12-07T18:21:52,638 | WARN | Thread-98 | | org.apache.sshd.osgi -
2.5.1 | ChannelSession | | onExit(ChannelSession[id=0,
recipient=0]-ServerSessionImpl[karaf@/127.0.0.1:61700]) code=0 message=''
SshChannelClosedException closing shell:
flush(ChannelOutputStream[ChannelSession[id=0,
recipient=0]-ServerSessionImpl[karaf@/127.0.0.1:61700]] SSH_MSG_CHANNEL_DATA)
length=0 - stream is already closed
{code}
I can confirm that this no longer happends with 4.3.1-SNAPSHOT.
was (Author: rastislav.papp):
I stumbled upon a similar problem - I tried to connect to karaf with a java
client via ssh (using jsch). Karaf SSH server logged this exception:
{code}
2020-12-07T18:21:52,638 | WARN | Thread-98 | | org.apache.sshd.osgi -
2.5.1 | ChannelSession | | onExit(ChannelSession[id=0,
recipient=0]-ServerSessionImpl[karaf@/127.0.0.1:61700]) code=0 message=''
SshChannelClosedException closing shell:
flush(ChannelOutputStream[ChannelSession[id=0,
recipient=0]-ServerSessionImpl[karaf@/127.0.0.1:61700]] SSH_MSG_CHANNEL_DATA)
length=0 - stream is already closed
{code}
I can confirm that this no longer happends with 4.3.1-SNAPSHOT.
> Karaf server SSH connection not happing via ssh.net dll
> -------------------------------------------------------
>
> Key: KARAF-6918
> URL: https://issues.apache.org/jira/browse/KARAF-6918
> Project: Karaf
> Issue Type: Bug
> Components: karaf
> Affects Versions: 4.3.0
> Environment: Karaf 4.3.0
> ssh.net (https://github.com/sshnet/SSH.NET)
>
>
> Reporter: Chandre Gowda M R
> Assignee: Jean-Baptiste Onofré
> Priority: Major
>
> We are trying to connect to karaf server 4.3.0 via ssh in C# using ssh.net
> library
> ([https://github.com/sshnet/SSH.NET])
> .
> Once connection done, we are trying to execute following command
> list | grep -i <bundleName>.
> This throws exception while executing the above command saying 'connection is
> reset'.
>
> However sshconnection to Karaf server-4.2.9 is working fine via above
> library.
> Also shconnection to Karaf server-4.3.0 is fine via putty and java ssh
> library.
> Please suggest how to resolve this issue with karaf 4.3.0. Same issue exists
> for karaf 4.2.10.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)