15 lines
367 B
Markdown
15 lines
367 B
Markdown
+++
|
|
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> |