UNOMI-95 Change default SSH port - Switched port to 8102 Signed-off-by: Serge Huber <shu...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/incubator-unomi/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-unomi/commit/32447a71 Tree: http://git-wip-us.apache.org/repos/asf/incubator-unomi/tree/32447a71 Diff: http://git-wip-us.apache.org/repos/asf/incubator-unomi/diff/32447a71 Branch: refs/heads/feature-UNOMI-5-KARAF4 Commit: 32447a71d4a424499b7f40af41279f468895bd88 Parents: 7f7cafd Author: Serge Huber <shu...@apache.org> Authored: Wed May 10 14:27:12 2017 +0200 Committer: Serge Huber <shu...@apache.org> Committed: Wed May 10 14:27:12 2017 +0200 ---------------------------------------------------------------------- .../resources/etc/org.apache.karaf.shell.cfg | 104 +++++++++++++++++++ .../markdown/versions/master/configuration.md | 11 +- 2 files changed, 114 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/32447a71/package/src/main/resources/etc/org.apache.karaf.shell.cfg ---------------------------------------------------------------------- diff --git a/package/src/main/resources/etc/org.apache.karaf.shell.cfg b/package/src/main/resources/etc/org.apache.karaf.shell.cfg new file mode 100644 index 0000000..2f0ee02 --- /dev/null +++ b/package/src/main/resources/etc/org.apache.karaf.shell.cfg @@ -0,0 +1,104 @@ +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# +# These properties are used to configure Karaf's ssh shell. +# + +# +# Via sshPort and sshHost you define the address you can login into Karaf. +# +sshPort = 8102 +sshHost = 0.0.0.0 + +# +# The sshIdleTimeout defines the inactivity timeout to logout the SSH session. +# The sshIdleTimeout is in milliseconds, and the default is set to 30 minutes. +# +sshIdleTimeout = 1800000 + +# +# sshRealm defines which JAAS domain to use for password authentication. +# +sshRealm = karaf + +# +# The location of the hostKey file defines where the private/public key of the server +# is located. If no file is at the defined location it will be ignored. +# +hostKey = ${karaf.etc}/host.key + +# +# Self defined key size in 1024, 2048, 3072, or 4096 +# If not set, this defaults to 4096. +# +# keySize = 4096 + +# +# Specify host key algorithm, defaults to RSA +# +# algorithm = RSA + +# +# Specify the client log level (default is WARN) +# 0: ERROR +# 1: WARN +# 2: INFO +# 3: DEBUG +# 4: TRACE +# +#logLevel=1 + +# +# Specify an additional welcome banner to be displayed when a user logs into the server. +# +# welcomeBanner = + +# +# Defines the completion mode on the Karaf shell console. The possible values are: +# - GLOBAL: it's the same behavior as in previous Karaf releases. The completion displays all commands and all aliases +# ignoring if you are in a subshell or not. +# - FIRST: the completion displays all commands and all aliases only when you are not in a subshell. When you are +# in a subshell, the completion displays only the commands local to the subshell. +# - SUBSHELL: the completion displays only the subshells on the root level. When you are in a subshell, the completion +# displays only the commands local to the subshell. +# This property define the default value when you use the Karaf shell console. +# You can change the completion mode directly in the shell console, using shell:completion command. +# +completionMode = GLOBAL + +# +# Enable the console logger. +#Â The console logger allows to generate log messages for all actions/commands performed in the shell console. +# +# consoleLogger property enable/disable the logger. The logger is disabled by default +# +consoleLogger = false +# +# consoleLoggerName allows you to define the logger name used for the log messages +# +consoleLoggerName = org.apache.karaf.shell.console.Logger +# +# consoleLoggerOutLevel allows you to define the log level for the log messages corresponding to the System.out stream +# +consoleLoggerOutLevel = debug +# +# consoleLoggerErrLevel allows you to define the log level for the log messages corresponding to the System.err stream +# +consoleLoggerErrLevel = error http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/32447a71/src/site/markdown/versions/master/configuration.md ---------------------------------------------------------------------- diff --git a/src/site/markdown/versions/master/configuration.md b/src/site/markdown/versions/master/configuration.md index 9d7efa0..5d776e2 100644 --- a/src/site/markdown/versions/master/configuration.md +++ b/src/site/markdown/versions/master/configuration.md @@ -302,4 +302,13 @@ that contains the following default settings: defaultLatitude=46.1884341 defaultLongitude=6.1282508 -You might want to change these for testing or for demonstration purposes. \ No newline at end of file +You might want to change these for testing or for demonstration purposes. + +Apache Karaf SSH Console +-------------------------------------- +The Apache Karaf SSH console is available inside Apache Unomi, but the port has been changed from the default value of +8101 to 8102 to avoid conflicts with other Karaf-based products. So to connect to the SSH console you should use: + + ssh -p 8102 karaf@localhost + +or the user/password you have setup to protect the system if you have changed it. \ No newline at end of file