summaryrefslogtreecommitdiffstats
path: root/VNFs/DPPD-PROX/helper-scripts/rapid
diff options
context:
space:
mode:
authorLuc Provoost <luc.provoost@gmail.com>2023-02-07 09:41:07 +0100
committerLuc Provoost <luc.provoost@gmail.com>2023-02-07 09:41:07 +0100
commit96b651994ca7e860c5517f50276c7fd20a75dede (patch)
treec7bbdaecd896adfa4b743451ad932fd380f21e10 /VNFs/DPPD-PROX/helper-scripts/rapid
parent7a8aefa95e91371252eea44a0ba5ca7068712c57 (diff)
Start ssh properly for Ubuntu
The command to start ssh (on CentOS) seems not be working on Ubunutu. Now we start ssh with 'service ssh start' Signed-off-by: Luc Provoost <luc.provoost@gmail.com> Change-Id: Ief8cd2e10443ffe99da1ed494d154edc6d8e175e
Diffstat (limited to 'VNFs/DPPD-PROX/helper-scripts/rapid')
-rwxr-xr-xVNFs/DPPD-PROX/helper-scripts/rapid/start.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/VNFs/DPPD-PROX/helper-scripts/rapid/start.sh b/VNFs/DPPD-PROX/helper-scripts/rapid/start.sh
index 7fbeedf8..0ff7d9bd 100755
--- a/VNFs/DPPD-PROX/helper-scripts/rapid/start.sh
+++ b/VNFs/DPPD-PROX/helper-scripts/rapid/start.sh
@@ -34,6 +34,9 @@ create_tun
touch /opt/rapid/system_ready_for_rapid
# Start SSH server in background
-/usr/sbin/sshd
+echo "mkdir -p /var/run/sshd" >> /etc/rc.local
+service ssh start
-exec sleep infinity
+echo "rapid ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
+
+sleep infinity