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.
This commit is contained in:
Ryo Nakamura
2024-03-12 16:02:58 +09:00
parent d03ae9f592
commit 5dbc9e5bce

View File

@@ -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