Skip to content

Commit ded84aa

Browse files
authored
Ssh keys only and no root login
1 parent 6aeec8e commit ded84aa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ssh.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ GatewayPorts no
4040
PermitTunnel no
4141
PrintMotd no
4242
UseDNS no
43+
44+
# Allow sftp client
45+
Subsystem sftp /usr/lib/openssh/sftp-server
4346
" > /etc/ssh/sshd_config.d/debian.conf
4447

4548
# Restart

0 commit comments

Comments
 (0)