Details
Description
When wrapper is used to install service in Ubuntu 12.04 (or any Ubuntu for that matter, probably Debian too), SSH is not possible.
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
The reason is Debian doesn't set JAVA_HOME due to policy (https://bugs.launchpad.net/ubuntu/+source/java-common/+bug/364794)
Workaround is to put this in the bin/<name>-service script :
export JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")
It should be default, or probably like this :
[ -z $JAVA_HOME ] && export JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")
Attachments
Issue Links
- is related to
-
KARAF-1684 org.apache.karaf.shell.ssh under wrapper throws UnsupportedClassVersionError: com/sun/crypto/provider/SunJCE : Unsupported major.minor version 51.0 under Ubuntu 12.04 OpenJDK 7 i386
- Resolved
- relates to
-
KARAF-1756 No SSH connection possible on Debian 6.0.5
- Resolved
-
KARAF-260 ssh to karaf shell gives "no matching cipher found"
- Closed
-
KARAF-816 Wrapper feature doesn't load security libraries
- Closed