From 96b651994ca7e860c5517f50276c7fd20a75dede Mon Sep 17 00:00:00 2001 From: Luc Provoost Date: Tue, 7 Feb 2023 09:41:07 +0100 Subject: 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 Change-Id: Ief8cd2e10443ffe99da1ed494d154edc6d8e175e --- VNFs/DPPD-PROX/helper-scripts/rapid/start.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'VNFs') 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 -- cgit 1.2.3-korg