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>
pull/2496/head
Christine Dodrill 3 years ago committed by GitHub
parent 8db26a2261
commit 60f34c70a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 ]`

Loading…
Cancel
Save