Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2024-01-20 22:38:53 +08:00
parent d7b4af2ee2
commit 7ff0ef64a7
No known key found for this signature in database

View File

@ -117,8 +117,9 @@ ssh-server:
rm -rf /etc/ssh/ssh_host_rsa_key /etc/ssh/ssh_host_dsa_key
sed -i 's/^#PubkeyAuthentication yes/PubkeyAuthentication yes/g' /etc/ssh/sshd_config
sed -i 's/AllowTcpForwarding no/AllowTcpForwarding yes/g' /etc/ssh/sshd_config
cp -r tests/ipv6.conf /etc/ssh/sshd_config.d/ipv6.conf
/usr/sbin/sshd -t
sed -i 's/^#ListenAddress 0.0.0.0/ListenAddress 0.0.0.0/g' /etc/ssh/sshd_config
sed -i 's/^#ListenAddress ::/ListenAddress ::/g' /etc/ssh/sshd_config
# cp -r tests/ipv6.conf /etc/ssh/sshd_config.d/ipv6.conf
./tests/entrypoint.sh /usr/sbin/sshd -D &
coverage: