X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ntsimulator%2Fscripts%2Ftls%2Fenable_ssh_key.sh;h=9bfbbd667371788fba74b6d133bdf1dbf6304917;hb=0c00182421feb00a63a76555844dba5b72639b8e;hp=5ed2868846a2545cda814f79570ff5ad0bd28e89;hpb=29ce368a8b49cb41f3a1640581ff9958ea50ad8c;p=sim%2Fo1-interface.git diff --git a/ntsimulator/scripts/tls/enable_ssh_key.sh b/ntsimulator/scripts/tls/enable_ssh_key.sh index 5ed2868..9bfbbd6 100755 --- a/ntsimulator/scripts/tls/enable_ssh_key.sh +++ b/ntsimulator/scripts/tls/enable_ssh_key.sh @@ -1,4 +1,22 @@ #! /bin/bash +################################################################################ +# +# Copyright 2019 highstreet technologies GmbH and others +# +# Licensed 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. + +################################################################################ +# Script to enable SSH publicKey authentication in the localhost NETCONF server sleep 5 @@ -10,7 +28,7 @@ echo ''"$SSH_PUB_KEY"'> ~/.ssh/known_hosts +ssh-keyscan -p 830 127.0.0.1 >> ~/.ssh/known_hosts echo 'Done' exit 0 \ No newline at end of file