2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +00:00

Change ssh duringe suse 15 post

Have port 22 be inside the target environment, and
2222 point to the installer. This improves ansible
experience.
This commit is contained in:
Jarrod Johnson 2021-03-19 15:13:37 -04:00
parent 7c5dd85e74
commit 153749aebe

View File

@ -19,3 +19,10 @@ cp -a /tls/* /mnt/var/lib/ca-certificates/pem
cp -a /tls/*.pem /mnt/etc/pki/trust/anchors
run_remote setupssh.sh
echo Port 22 >> /etc/ssh/sshd_config
echo Port 2222 >> /etc/ssh/sshd_config
echo Match LocalPort 22 >> /etc/ssh/sshd_config
echo " ChrootDirectory /mnt" >> /etc/ssh/sshd_config
kill -HUP $(cat /run/sshd.pid)