Cannot ssh into Fuse using client script or ssh utility.
Issue
- ssh into fuse hangs with following message
[root@UFFXPRDTELI01 ~]ssh -p 8101 -o PasswordAuthentication=yes -o PubkeyAuthentication=no -vvvvv admin@localhost
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost [127.0.0.1] port 8101.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/identity-cert type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
- It just hangs here. I do not want to restart the service as this is a production environment. How can I restart just the ssh/shell bundle?
- It seems like there are few connections in the CLOSE_WAIT state open on port 8101:
[root@hostname ~]# netstat -anp | grep 8101
tcp 0 0 0.0.0.0:8101 0.0.0.0:* LISTEN 28942/java
tcp 0 0 127.0.0.1:42221 127.0.0.1:8181 ESTABLISHED 8101/sshd
tcp 0 0 127.0.0.1:41803 127.0.0.1:8181 ESTABLISHED 8101/sshd
tcp 1 0 127.0.0.1:8101 127.0.0.1:53980 CLOSE_WAIT -
tcp 394 0 127.0.0.1:8101 127.0.0.1:52425 CLOSE_WAIT -
tcp 394 0 127.0.0.1:8101 127.0.0.1:43764 CLOSE_WAIT 28942/java
tcp 0 0 127.0.0.1:41791 127.0.0.1:8181 ESTABLISHED 8101/sshd
tcp 394 0 127.0.0.1:8101 127.0.0.1:37514 CLOSE_WAIT -
tcp 0 0 127.0.0.1:41804 127.0.0.1:8181 ESTABLISHED 8101/sshd
tcp 394 0 127.0.0.1:8101 127.0.0.1:46941 CLOSE_WAIT -
tcp 394 0 127.0.0.1:8101 127.0.0.1:54279 CLOSE_WAIT -
tcp 394 0 127.0.0.1:8101 127.0.0.1:55333 CLOSE_WAIT -
tcp 394 0 127.0.0.1:8101 127.0.0.1:58233 CLOSE_WAIT -
tcp 394 0 127.0.0.1:8101 127.0.0.1:44627 CLOSE_WAIT -
tcp 0 0 127.0.0.1:42220 127.0.0.1:8181 ESTABLISHED 8101/sshd
tcp 1 0 127.0.0.1:8101 127.0.0.1:58547 CLOSE_WAIT -
tcp 394 0 127.0.0.1:8101 127.0.0.1:46777 CLOSE_WAIT -
tcp 1 0 127.0.0.1:8101 127.0.0.1:55260 CLOSE_WAIT -
tcp 394 0 127.0.0.1:8101 127.0.0.1:56655 CLOSE_WAIT -
tcp 0 0 127.0.0.1:41792 127.0.0.1:8181 ESTABLISHED 8101/sshd
unix 3 [ ] STREAM CONNECTED 227341236 8101/sshd
[root@hostname ~]#
- error in the fuse.log
| 2016-12-20 19:45:15,610 | WARN | 5]-nio2-thread-4 | org.apache.sshd.server.session.ServerSession | Exception caught | java.io.IOException: Broken pipe at sun.nio.ch.FileDispatcherImpl.write0(Native Method)[:1.7.0_101] at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)[:1.7.0_101] at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)[:1.7.0_101] at sun.nio.ch.IOUtil.write(IOUtil.java:65)[:1.7.0_101] at sun.nio.ch.UnixAsynchronousSocketChannelImpl.implWrite(UnixAsynchronousSocketChannelImpl.java:691)[:1.7.0_101] at sun.nio.ch.AsynchronousSocketChannelImpl.write(AsynchronousSocketChannelImpl.java:382)[:1.7.0_101] at sun.nio.ch.AsynchronousSocketChannelImpl.write(AsynchronousSocketChannelImpl.java:399)[:1.7.0_101] at java.nio.channels.AsynchronousSocketChannel.write(AsynchronousSocketChannel.java:560)[:1.7.0_101] at org.apache.sshd.common.io.nio2.Nio2Session.startWriting(Nio2Session.java:212) at org.apache.sshd.common.io.nio2.Nio2Session.write(Nio2Session.java:115) at org.apache.sshd.common.session.AbstractSession.doWritePacket(AbstractSession.java:508)[30:org.apache.sshd.core:0.12.0.redhat-002] at org.apache.sshd.common.session.AbstractSession.writePacket(AbstractSession.java:495)[30:org.apache.sshd.core:0.12.0.redhat-002] at org.apache.sshd.common.channel.AbstractChannel.writePacket(AbstractChannel.java:198)[30:org.apache.sshd.core:0.12.0.redhat-002] at org.apache.sshd.common.channel.AbstractChannel.sendEof(AbstractChannel.java:262)[30:org.apache.sshd.core:0.12.0.redhat-002] at org.apache.sshd.server.channel.ChannelSession.closeShell(ChannelSession.java:565)[30:org.apache.sshd.core:0.12.0.redhat-002] at org.apache.sshd.server.channel.ChannelSession$2.onExit(ChannelSession.java:509) at org.apache.karaf.shell.ssh.ShellCommandFactory$ShellCommand.start(ShellCommandFactory.java:173) at org.apache.sshd.server.channel.ChannelSession.handleExec(ChannelSession.java:422)[30:org.apache.sshd.core:0.12.0.redhat-002] at org.apache.sshd.server.channel.ChannelSession.handleRequest(ChannelSession.java:304)[30:org.apache.sshd.core:0.12.0.redhat-002] at org.apache.sshd.server.channel.ChannelSession$ChannelSessionRequestHandler.process(ChannelSession.java:576)[30:org.apache.sshd.core:0.12.0.redhat-002] at org.apache.sshd.server.channel.ChannelSession$ChannelSessionRequestHandler.process(ChannelSession.java:574)[30:org.apache.sshd.core:0.12.0.redhat-002] at org.apache.sshd.common.channel.AbstractChannel.handleRequest(AbstractChannel.java:96)[30:org.apache.sshd.core:0.12.0.redhat-002] at org.apache.sshd.common.session.AbstractConnectionService.channelRequest(AbstractConnectionService.java:261)[30:org.apache.sshd.core:0.12.0.redhat-002] at org.apache.sshd.common.session.AbstractConnectionService.process(AbstractConnectionService.java:139)[30:org.apache.sshd.core:0.12.0.redhat-002] at org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:399)[30:org.apache.sshd.core:0.12.0.redhat-002] at org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:295)[30:org.apache.sshd.core:0.12.0.redhat-002] at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:731)[30:org.apache.sshd.core:0.12.0.redhat-002] at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:277)[30:org.apache.sshd.core:0.12.0.redhat-002] at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)[30:org.apache.sshd.core:0.12.0.redhat-002] at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:187)[30:org.apache.sshd.core:0.12.0.redhat-002] at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:173)[30:org.apache.sshd.core:0.12.0.redhat-002] at org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32) at java.security.AccessController.doPrivileged(Native Method)[:1.7.0_101] at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)[30:org.apache.sshd.core:0.12.0.redhat-002] at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)[:1.7.0_101] at sun.nio.ch.Invoker$2.run(Invoker.java:218)[:1.7.0_101] at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)[:1.7.0_101] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_101] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_101] at java.lang.Thread.run(Thread.java:745)[:1.7.0_101]
Environment
- Red Hat JBoss Fuse
- 6.1.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
