From c26cb0c3c714d270205358324bfc7a64e71be415 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sat, 23 Jul 2022 18:50:48 +0200 Subject: [PATCH] Remove default sshd banner --- stage3/00-install-yunohost/00-run.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stage3/00-install-yunohost/00-run.sh b/stage3/00-install-yunohost/00-run.sh index 493e9b6..b4d8c70 100755 --- a/stage3/00-install-yunohost/00-run.sh +++ b/stage3/00-install-yunohost/00-run.sh @@ -46,6 +46,10 @@ sed -i '/PermitRootLogin/c\PermitRootLogin yes' /etc/ssh/sshd_config echo "root:yunohost" | chpasswd 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/" echo "Cleaning ..." @@ -77,4 +81,4 @@ do sleep 1 done sleep 5 -done \ No newline at end of file +done