From 6def7c8dd5f476ee5e19b53cbdbf673bbf0ac0bd Mon Sep 17 00:00:00 2001
From: Marius Raes <mariusraes@Mariuss-MacBook-Air.local>
Date: Thu, 19 May 2022 17:52:05 +0200
Subject: [PATCH] =?UTF-8?q?ingen=20passord=20p=C3=A5logging=20filserver?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 source/orchestrationLogic/HEAT/fileserver.sh | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/source/orchestrationLogic/HEAT/fileserver.sh b/source/orchestrationLogic/HEAT/fileserver.sh
index f1bb7f4f..a366d74c 100644
--- a/source/orchestrationLogic/HEAT/fileserver.sh
+++ b/source/orchestrationLogic/HEAT/fileserver.sh
@@ -35,7 +35,6 @@ addgroup --system sftponly
 adduser --disabled-password --gecos "" --home /home/project_owner <owner>
 
 # owner can have access to /opt/shared to upload and download files
-#chown nobody:nogroup /opt/data/shared
 chown ubuntu /opt/data/shared
 
 mkdir /home/project_owner/.ssh/
@@ -51,7 +50,7 @@ adduser ubuntu allowssh
 
 echo 'PermitRootLogin no
 PubkeyAuthentication no
-PasswordAuthentication yes
+PasswordAuthentication no
 ChallengeResponseAuthentication no
 UsePAM yes
 X11Forwarding yes
@@ -70,8 +69,8 @@ Match Group allowssh
 Match Group sftponly
     ChrootDirectory /opt/data
     DisableForwarding yes
-    ForceCommand internal-sftp' > /etc/ssh/sshd_config
-    PasswordAuthentication no
+    ForceCommand internal-
+    sftp' > /etc/ssh/sshd_config
 
 
 # restart ssh to apply changes
-- 
GitLab