tstest/integration/vms: disable rDNS for sshd on centos (#2492)

This prevents centos tests from timing out because sshd does reverse dns
lookups on every session being established instead of doing it once on
the acutal ssh connection being established. This is odd. Appending this
to the sshd config and restarting it seems to fix it though.

Signed-off-by: Christine Dodrill <xe@tailscale.com>
This commit is contained in:
Christine Dodrill 2021-07-22 15:24:52 -04:00 committed by GitHub
parent 8db26a2261
commit 60f34c70a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,9 @@ func (d *Distro) InstallPre() string {
switch d.PackageManager {
case "yum":
return ` - [ yum, update, gnupg2 ]
- [ yum, "-y", install, iptables ]`
- [ yum, "-y", install, iptables ]
- [ sh, "-c", "printf '\n\nUseDNS no\n\n' | tee -a /etc/ssh/sshd_config" ]
- [ systemctl, restart, "sshd.service" ]`
case "zypper":
return ` - [ zypper, in, "-y", iptables ]`