Menü schliessen
Created: December 24th 2011
Last updated: May 1st 2020
Categories: VMWare ESXi 5.x
Author: Marcus Fleuti

Change ESXi SSH and vSphere administration TCP ports

Tags:  ESXi,  VMWare,  vSphere
Donation Section: Background
Monero Badge: QR-Code
Monero Badge: Logo Icon Donate with Monero Badge: Logo Text
82uymVXLkvVbB4c4JpTd1tYm1yj1cKPKR2wqmw3XF8YXKTmY7JrTriP4pVwp2EJYBnCFdXhLq4zfFA6ic7VAWCFX5wfQbCC

ESXi Version 4.x
Change TCP port settings for SSH service:


1. Edit /etc/services and change ports as desired:

ssh 22/tcp # SSH Remote Login Protocol
ssh 22/udp # SSH Remote

2. Restart inetd service:

kill -HUP `ps | grep inetd`

Change TCP port settings for the vSphere administration:


1. Edit the file /etc/vmware/hostd/proxy.xml and add these tags unter the <ConfigRoot> tag:

<httpPort>http_port_number</httpPort>
<httpsPort>https_port_number</httpsPort>

2. Save the file and restart the Management Agent services

ESXi: /sbin/services.sh restart
ESX: service mgmt-vmware start