The delay of 2 minutes is caused because the OpenBSD SSH does a double reverse name lookup of the IP address that is connecting to it. See
https://en.wikipedia.org/wiki/Double-reverse_DNS
There are several ways of fixing this:
- The easy lazy insecure coward method:
Disable this lookup by changing #UseDNS yes into UseDNS no In /etc/ssh/sshd_config
- Make the double reverse DNS lookup work by:
- Configuring a local DNS server, which is not that trivial if you never have done it before
- Add a an entry to the OpenBSD /etc/hosts like this:
Code:
192.168.222.20 hercules.utp.xnet hercules
See hosts(5) for a description of that file.