Hologos / tpcp

A smart tool to remotely work with SAP import queue and transports.
MIT License
0 stars 0 forks source link

SSH timeout doesn't work when hostname cannot be resolved #32

Closed Hologos closed 5 years ago

Hologos commented 5 years ago

Even though -o ConnectTimeout=5 is set with ssh, it takes ages to timeout if hostname cannot be resolved.

Hologos commented 5 years ago

The problem was on my local machine. I was using /etc/resolver/<company>.corp with nameserver IP address not reachable from internet. This caused the delay.

This fixed it immediately sudo mv /etc/resolver/<company>.corp /etc/resolver/<company>.corp.disabled