X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ntsimulator%2Fscripts%2Ftls%2Fenable_ssh_key.sh;fp=ntsimulator%2Fscripts%2Ftls%2Fenable_ssh_key.sh;h=0000000000000000000000000000000000000000;hb=f1d5c9198acde7a7ce296490087cad37e008f688;hp=9bfbbd667371788fba74b6d133bdf1dbf6304917;hpb=f2d8f1002fa93848c80a88e5658db4816cba3020;p=sim%2Fo1-interface.git diff --git a/ntsimulator/scripts/tls/enable_ssh_key.sh b/ntsimulator/scripts/tls/enable_ssh_key.sh deleted file mode 100755 index 9bfbbd6..0000000 --- a/ntsimulator/scripts/tls/enable_ssh_key.sh +++ /dev/null @@ -1,34 +0,0 @@ -#! /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 - -SSH_PUB_KEY="$(cat /home/netconf/.ssh/id_dsa.pub| awk '{print $2}')" - -echo 'netconfssh_keyssh-dss' >> load_auth_pubkey.xml -echo ''"$SSH_PUB_KEY"'' >> load_auth_pubkey.xml - -sysrepocfg --merge=load_auth_pubkey.xml --format=xml ietf-system -rm load_auth_pubkey.xml - -ssh-keyscan -p 830 127.0.0.1 >> ~/.ssh/known_hosts - -echo 'Done' -exit 0 \ No newline at end of file