1
0
Files
cheatsheet-site/content/ssh/sshd.md
yuudi 728a3db957
Some checks failed
Build / build (push) Has been cancelled
init
2025-08-12 18:37:54 -06:00

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>