Skip to content
Snippets Groups Projects
Commit 6def7c8d authored by Marius Raes's avatar Marius Raes
Browse files

ingen passord pålogging filserver

parent c4039040
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,6 @@ addgroup --system sftponly ...@@ -35,7 +35,6 @@ addgroup --system sftponly
adduser --disabled-password --gecos "" --home /home/project_owner <owner> adduser --disabled-password --gecos "" --home /home/project_owner <owner>
# owner can have access to /opt/shared to upload and download files # owner can have access to /opt/shared to upload and download files
#chown nobody:nogroup /opt/data/shared
chown ubuntu /opt/data/shared chown ubuntu /opt/data/shared
mkdir /home/project_owner/.ssh/ mkdir /home/project_owner/.ssh/
...@@ -51,7 +50,7 @@ adduser ubuntu allowssh ...@@ -51,7 +50,7 @@ adduser ubuntu allowssh
echo 'PermitRootLogin no echo 'PermitRootLogin no
PubkeyAuthentication no PubkeyAuthentication no
PasswordAuthentication yes PasswordAuthentication no
ChallengeResponseAuthentication no ChallengeResponseAuthentication no
UsePAM yes UsePAM yes
X11Forwarding yes X11Forwarding yes
...@@ -70,8 +69,8 @@ Match Group allowssh ...@@ -70,8 +69,8 @@ Match Group allowssh
Match Group sftponly Match Group sftponly
ChrootDirectory /opt/data ChrootDirectory /opt/data
DisableForwarding yes DisableForwarding yes
ForceCommand internal-sftp' > /etc/ssh/sshd_config ForceCommand internal-
PasswordAuthentication no sftp' > /etc/ssh/sshd_config
# restart ssh to apply changes # restart ssh to apply changes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment