ljf (zamentur) 6 years ago
committed by GitHub
parent
commit
e36afd8f99
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      conf/ssh_regenconf_hook

5
conf/ssh_regenconf_hook

@ -18,7 +18,10 @@ do_post_regen() {
# Harden SSH connection for the user # Harden SSH connection for the user
if ! grep --quiet "^##-> __APP__$" /etc/ssh/sshd_config if ! grep --quiet "^##-> __APP__$" /etc/ssh/sshd_config
then then
echo "##-> __APP__
# Please keep the linebreak to avoid some bug
# See: https://forum.yunohost.org/t/yunohost-3-8-testing-call-for-feedback/10870/115?u=ljf
echo "
##-> __APP__
# Hardening user connection # Hardening user connection
Match User __USER__ Match User __USER__
ChrootDirectory %h ChrootDirectory %h

Loading…
Cancel
Save