be me, ten years in ops need to check if a port answers type
telnet host 443screen goes black press Ctrl+], thenquit, like an animal every. single. time.
Do not tell my team. They think I use something modern.
be me, ten years in ops need to check if a port answers type
telnet host 443screen goes black press Ctrl+], thenquit, like an animal every. single. time.
Do not tell my team. They think I use something modern.
nc -vz host 443 and you are done. Or without installing anything, in bash:
timeout 3 bash -c '</dev/tcp/192.0.2.10/443' && echo open || echo closed
Works on any box that has bash. No judgement though, telnet got us all here.
Telnet is fine for "does a TCP handshake complete". Just remember that "open" only means the three-way handshake finished, not that the service behind it is healthy. A load balancer will happily accept and then fail you.
press Ctrl+], then quit, like an animal
I felt this in my fingers.