Skip to content

Commit

Permalink
Merge pull request #10 from mrzarquon/fix/ssh
Browse files Browse the repository at this point in the history
fixes issue with /etc/ssh/sdm_ca.pub permissions
  • Loading branch information
wrenhunter authored May 26, 2022
2 parents f27f3a6 + 15e2c17 commit 250a4a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions onboarding/http/templates/http_install/http_install.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# add sdm public key
echo "${SSH_PUB_KEY}" | tee -a /etc/ssh/sdm_ca.pub
chmod 600 /etc/ssh/sdm_ca.pub
echo "TrustedUserCAKeys /etc/ssh/sdm_ca.pub" | tee -a /etc/ssh/sshd_config
systemctl restart sshd

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
echo "${SSH_PUB_KEY}" | tee -a /etc/ssh/sdm_ca.pub
chmod 600 /etc/ssh/sdm_ca.pub
echo "TrustedUserCAKeys /etc/ssh/sdm_ca.pub" | tee -a /etc/ssh/sshd_config
systemctl restart ssh

Expand Down

0 comments on commit 250a4a5

Please sign in to comment.