VMware Cloud Community
serenitynow98
Contributor
Contributor
Jump to solution

How do I telnet from a esx host?

I am trying to check and see if a port on the license server is open and I need to telnet from an esx host to the license server..

But base install of ESX looks like does not come with a telnet client.

Anyone know how to telnet from an esx host or is there some other way I can check and see if it is able to talk to another server on a particular port?

0 Kudos
1 Solution

Accepted Solutions
Paul_Lalonde
Commander
Commander
Jump to solution

1) Put the ESX CDROM into the server.

2) Type: mount /mnt/cdrom

3) Type: cd /mnt/cdrom/VMware/RPMS

4) Type: rpm -Uvh telnet-0.17-26.EL3.3.i386.rpm

5) Enable the Telnet outbound firewall port

Done!

Paul

View solution in original post

0 Kudos
15 Replies
serenitynow98
Contributor
Contributor
Jump to solution

I guess I should add that I am not able to communicate with the license server from the ESX host.

Can someone tell me what port needs to be enabled/open from the host to the license server and vice versa for licensing to work?

0 Kudos
MR-T
Immortal
Immortal
Jump to solution

Telnet will be disabled by default.

You can make firewall changes from the configuration > security section.

For licence communication, the following ports are used:

27000 Licence transactions from ESX server to the licence server Outgoing TCP

27010 Licence transactions from the licence server Incoming TCP

0 Kudos
serenitynow98
Contributor
Contributor
Jump to solution

I know that and network team has confirmed the ports are open.

I need someway to verify that..

On a windows server we use telnet but what is its equivalent on ESX?

0 Kudos
MR-T
Immortal
Immortal
Jump to solution

You can enable the telnet client, it's on port 23.

From within the VI client, select the configuration tab, then security profile, firewall, properties and browse down to the telnet client item.

0 Kudos
Paul_Lalonde
Commander
Commander
Jump to solution

1) Put the ESX CDROM into the server.

2) Type: mount /mnt/cdrom

3) Type: cd /mnt/cdrom/VMware/RPMS

4) Type: rpm -Uvh telnet-0.17-26.EL3.3.i386.rpm

5) Enable the Telnet outbound firewall port

Done!

Paul

0 Kudos
serenitynow98
Contributor
Contributor
Jump to solution

Paul;

U R DA MAN.

Thanks ever so much...

Just what i wanted..

0 Kudos
mkats
Contributor
Contributor
Jump to solution

You are the man.

0 Kudos
espi3030
Expert
Expert
Jump to solution

I was late in reading this post, I ssh in between my esx hosts by issuing "esxcfg-firewall -e sshClient" to enable SSH, then "esxcfg-firewall -d sshClient" to disable it. DO you have to use telnet? This is very quick and easy.

0 Kudos
mkats
Contributor
Contributor
Jump to solution

I use ssh as well and telnet for network access verification.

0 Kudos
Mr_Flibble1
Enthusiast
Enthusiast
Jump to solution

I would recommend that you dump telnet entirely if possible. A few strange devices (routers etc) still seem to use it. However, it does present a serious network risk.

I remember using a program back in the day called "hunt" which allowed you to hijack telnet sessions. Never mind the ability to sniff the plaintext. Ah, those were the days. Smiley Happy

0 Kudos
mcowger
Immortal
Immortal
Jump to solution

Few of you are paying attention to what this user is doing (using telnet to verify TCP open ports) and instead getting all scared about using telnet for management (which he ISN'T doing).

Telnet for this purpose is FINE.

--Matt

--Matt VCDX #52 blog.cowger.us
0 Kudos
Mr_Flibble1
Enthusiast
Enthusiast
Jump to solution

Actually, I noticed he was doing that, but in that context I usually use nmap. I just try to avoid using telnet in general, unless on a windows machine where I don't have nmap installed. Smiley Happy

0 Kudos
williamarrata
Expert
Expert
Jump to solution

Coulden't he just NANO etc/services and look at the Telnet service and see it that way?

Hope that helped. 🙂
0 Kudos
Mr_Flibble1
Enthusiast
Enthusiast
Jump to solution

He could, but mcgower has a good point. You can use telnet to check a remote host for a given service. Such as email or http by: "telnet example.com:25"

0 Kudos
robpomeroy
Contributor
Contributor
Jump to solution

Apologies for bumping such an old topic.  I caught sight of it while looking to resolve a similar problem.  I'm using ESXi 5.  Althought there's no telnet client present, netcat is there at /bin/nc - viz:

~ # nc 192.168.1.2 80
GET / HTTP/1.0


HTTP/1.1 403 Forbidden
Date: Fri, 20 Jan 2012 10:42:20 GMT
Server: Apache/2.2.15 (CentOS)
Accept-Ranges: bytes

...

Author of the fantasy thriller, Insensate - available for all ebook readers and iDevices. Find out more here: http://pomeroy.me/content/insensate Only 99¢!
0 Kudos