init
Some checks failed
Build / build (push) Has been cancelled
Some checks failed
Build / build (push) Has been cancelled
This commit is contained in:
15
content/ssh/sshd.md
Normal file
15
content/ssh/sshd.md
Normal file
@@ -0,0 +1,15 @@
|
||||
+++
|
||||
date = '2025-08-10T12:13:32Z'
|
||||
title = 'sshd'
|
||||
+++
|
||||
|
||||
<shell-commands-builder-component
|
||||
command="cat << EOF > /etc/ssh/sshd_config.d/security.conf
|
||||
PermitRootLogin no
|
||||
PubkeyAuthentication yes
|
||||
PasswordAuthentication no
|
||||
Port $SSH_LISTEN_PORT
|
||||
EOF
|
||||
systemctl restart sshd"
|
||||
variables='[{"name":"SSH_LISTEN_PORT","default":"22"}]'>
|
||||
</shell-commands-builder-component>
|
||||
Reference in New Issue
Block a user