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
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment