mirror of
https://github.com/upa/mscp.git
synced 2026-02-04 03:24:58 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user