Start ssh properly for Ubuntu 62/73862/1
authorLuc Provoost <luc.provoost@gmail.com>
Tue, 7 Feb 2023 08:41:07 +0000 (09:41 +0100)
committerLuc Provoost <luc.provoost@gmail.com>
Tue, 7 Feb 2023 08:41:07 +0000 (09:41 +0100)
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

VNFs/DPPD-PROX/helper-scripts/rapid/start.sh

index 7fbeedf..0ff7d9b 100755 (executable)
@@ -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