karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raphael Majeed (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (KARAF-1756) No SSH connection possible on Debian 6.0.5
Date Wed, 22 Aug 2012 12:08:37 GMT

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

Raphael Majeed edited comment on KARAF-1756 at 8/22/12 11:07 PM:
-----------------------------------------------------------------

same problem as KARAF-1683.

I solved this issue by using the following code in karaf-service:
{code:title=karaf-service}
if [ -x /bin/readlink ]; then
  [ -z $JAVA_HOME ] && [ -x /usr/bin/javac ] && export JAVA_HOME="$(readlink
-f /usr/bin/javac | sed 's:/bin/javac::')"
  [ -z $JAVA_HOME ] && [ -x /usr/bin/java ] && export JAVA_HOME="$(readlink
-f /usr/bin/java | sed 's:/bin/java::')"
fi
{code}

The solution of KARAF-1683 has two problems:
1. [ -x readlink ] evaluates to false although the readlink command is available
2. "$(readlink -f /usr/bin/javac | sed 's:/bin/javac::')" evaluates to "/usr" if javac is
not available. Therefore the second command is not executed.

Above code fixes both problems and solves the issue for me.
                
      was (Author: rwm):
    same problem as KARAF-1683.

I solved this issue by using
{code}
if [ -x /bin/readlink ]; then
  [ -z $JAVA_HOME ] && [ -x /usr/bin/javac ] && export JAVA_HOME="$(readlink
-f /usr/bin/javac | sed 's:/bin/javac::')"
  [ -z $JAVA_HOME ] && [ -x /usr/bin/java ] && export JAVA_HOME="$(readlink
-f /usr/bin/java | sed 's:/bin/java::')"
fi
{code}

The solution of KARAF-1683 has two problems:
1. [ -x readlink ] evaluates to false although the readlink command is available
2. "$(readlink -f /usr/bin/javac | sed 's:/bin/javac::')" evaluates to "/usr" if javac is
not available. Therefore the second command is not executed.

Above code fixes both problems and solves the issue for me.
                  
> No SSH connection possible on Debian 6.0.5
> ------------------------------------------
>
>                 Key: KARAF-1756
>                 URL: https://issues.apache.org/jira/browse/KARAF-1756
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-os-integration
>    Affects Versions: 2.2.9
>         Environment: Debian 6.0.5 amd64, with package openjdk-6-jre (NO jdk)
>            Reporter: Raphael Majeed
>
> After installation of Karaf as a service, no SSH connection is possible:
> Output of ssh:
> {code}
> # ssh -p 8101 -l karaf localhost
> no matching cipher found: client aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
server
> {code}
> Output of karaf client:
> {code}
> # bin/client
> client: JAVA_HOME not set; results may vary
> 167 [NioProcessor-2] WARN org.apache.sshd.client.session.ClientSessionImpl - Exception
caught
> java.lang.IllegalStateException: Unable to negociate key exchange for item 2
>       at org.apache.sshd.common.session.AbstractSession.negociate(AbstractSession.java:903)
>       at org.apache.sshd.client.session.ClientSessionImpl.doHandleMessage(ClientSessionImpl.java:291)
>       at org.apache.sshd.client.session.ClientSessionImpl.handleMessage(ClientSessionImpl.java:253)
>       at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:539)
>       at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:232)
>       at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:58)
>       at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:716)
>       at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
>       at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)
>       at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796)
>       at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119)
>       at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
>       at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426)
>       at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:692)
>       at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:645)
>       at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:634)
>       at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:66)
>       at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1078)
>       at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
>       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>       at java.lang.Thread.run(Thread.java:636)
> Session is closed
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message