Using telnet from the VMware 5.x ESXi shell

Want to help support this blog? Try out Oh Dear, the best all-in-one monitoring tool for your entire website, co-founded by me (the guy that wrote this blogpost). Start with a 10-day trial, no strings attached.

We offer uptime monitoring, SSL checks, broken links checking, performance & cronjob monitoring, branded status pages & so much more. Try us out today!

Profile image of Mattias Geniar

Mattias Geniar, August 31, 2012

Follow me on Twitter as @mattiasgeniar

The short answer is: you can’t use telnet. But you can use alternatives, obviously.

For instance, to troubleshoot some iSCSI connectivity problems, you would be used to doing something as this.

~ # telnet 10.0.2.3 3260
-ash: telnet: not found

Instead, you can use netcat to test the connectivity.

~ # nc -z 10.0.2.3 3260
Connection to 10.0.2.3 3260 port [tcp/*] succeeded!

If you were to test this on a closed TCP port, the error would look like this.

~ # nc -z 10.0.2.3 32600
(empty response)


Want to subscribe to the cron.weekly newsletter?

I write a weekly-ish newsletter on Linux, open source & webdevelopment called cron.weekly.

It features the latest news, guides & tutorials and new open source projects. You can sign up via email below.

No spam. Just some good, practical Linux & open source content.