Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2024-01-20 22:24:16 +08:00
parent 22c6a11fd0
commit 25790a45c5
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View File

@ -117,6 +117,7 @@ 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
grep -Ri ListenAddress /etc/ssh/
./tests/entrypoint.sh /usr/sbin/sshd -D &
coverage:

View File

@ -68,8 +68,6 @@ func (p Plugin) hostPort(host string) (string, string) {
port = hosts[1]
}
fmt.Println(host, port)
return host, port
}