Remove default sshd banner

This commit is contained in:
tituspijean 2022-07-23 18:50:48 +02:00 committed by ljf (zamentur)
parent 5304de9929
commit c26cb0c3c7

View file

@ -46,6 +46,10 @@ sed -i '/PermitRootLogin/c\PermitRootLogin yes' /etc/ssh/sshd_config
echo "root:yunohost" | chpasswd echo "root:yunohost" | chpasswd
EOF EOF
echo "Removing Raspbian sshd banner"
rm /etc/ssh/sshd_config.d/rename_user.conf
rm /usr/share/userconf-pi/sshd_banner
install -m 755 files/check_yunohost_is_installed.sh "${ROOTFS_DIR}/etc/profile.d/" install -m 755 files/check_yunohost_is_installed.sh "${ROOTFS_DIR}/etc/profile.d/"
echo "Cleaning ..." echo "Cleaning ..."