From 5dbc9e5bced111519b4d6b629ecbdb5c5b9c2325 Mon Sep 17 00:00:00 2001 From: Ryo Nakamura Date: Tue, 12 Mar 2024 16:02:58 +0900 Subject: test: insert `Port` to /etc/ssh/sshd_config not to /etc/ssh/sshd_config.d/*.conf because openssh in Rocky Linux in 8 does not support the config.dy directory. --- scripts/test-in-container.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/test-in-container.sh b/scripts/test-in-container.sh index eeaf9b5..47f7c33 100755 --- a/scripts/test-in-container.sh +++ b/scripts/test-in-container.sh @@ -9,8 +9,8 @@ cd $script_dir set -x # sshd Linsten on 22 and 8022 -echo "Port 22" > /etc/ssh/sshd_config.d/mscp-test.conf -echo "Port 8022" >> /etc/ssh/sshd_config.d/mscp-test.conf +echo "Port 22" >> /etc/ssh/sshd_config +echo "Port 8022" >> /etc/ssh/sshd_config # Run sshd if [ ! -e /var/run/sshd.pid ]; then -- cgit v1.2.3