369
173
In the old days, we used telnet
to see if a port on a remote host was open: telnet hostname port
would attempt to connect to any port on any host and give you access to the raw TCP stream.
These days, the systems I work on do not have telnet installed (for security reasons), and all outbound connections to all hosts are blocked by default. Over time, it's easy to lose track of which ports are open to which hosts.
Is there another way to test if a port on a remote system is open – using a Linux system with a limited number of packages installed, and telnet
is not available?
Related: check status of one port on remote host at SO
– kenorb – 2015-12-30T14:50:25.863I was having this same issue. The answer by @Subhranath Chunder below helped. However, I then found out that installing Telnet was a small matter of running
brew install telnet
. So I expect Linux users can do the same withyum
andapt-get
. – Mig82 – 2019-09-26T09:22:16.183