Skip to content

Commit

Permalink
Update setup-sshd.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 authored Mar 24, 2024
1 parent be234c8 commit 78b8dae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup-sshd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ ssh-keygen -A
mkdir -vp /tmp/.ssh
echo "$SSH_PUBKEY" | tee -a /tmp/.ssh/authorized_keys

chmod go-w /tmp
chmod 700 /tmp/.ssh
chmod 600 /tmp/.ssh/authorized_keys

exec /usr/sbin/sshd -De

0 comments on commit 78b8dae

Please sign in to comment.