Skip to content

Commit

Permalink
Restrict tf user in sshd
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd-ntrf committed Jul 22, 2024
1 parent bcb671c commit 32e4bc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/configuration/puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ runcmd:
- test -f /etc/magic-castle-release && systemctl start puppet || true

write_files:
- content: restrict,agent-forwarding ${tf_ssh_public_key}
- content: restrict%{ if contains(tags, "puppet") },pty%{ else }%{ for host, ip in puppetservers },permitopen="${ip}:22"%{ endfor },port-forwarding,command="/sbin/nologin"%{ endif } ${tf_ssh_public_key}
path: /etc/ssh/authorized_keys.tf
permissions: "0644"
- content: |
Expand Down

0 comments on commit 32e4bc2

Please sign in to comment.