فعال کردن SSH بر روی کلیه ورژن های VMware ESXi

فعال کردن SSH بر روی کلیه ورژن های VMware ESXi

Many necessary administrative functions on ESXi requires SSH access. For example, offline bundles, third party management utilities, backup utilities, and many other tasks require you to log in to the ESXi console, via SSH or physically. This post will guide you through the process of enabling the SSH service, and opening up the firewall to allow access. This process works on all versions of ESXi, including the newer versions such as 5, 5.5, and 6. Lets get started.

Enabling SSH on an ESXi host

There are two steps involved in getting SSH access set up on an ESXi host.

  • Enabling the SSH service
  • Opening port 22 (SSH port) on the firewall

First, log into the VMware vSphere Client. You can login directory to the host, or to a vSphere server, it doesn’t matter. Select the host in the left panel, then navigate to Configuration > Security Profile, once you are there, click on the Properties option to the right of Services.

Screen-Shot-2015-05-19-at-11.31.26-AM

Now, select SSH, then Options.

Screen Shot 2015-05-19 at 11.34.29 AM


Select “Start and stop with host,” then click Start. Click OK, and OK again.

Screen-Shot-2015-05-19-at-11.36.16-AM

Next, select firewall properties by clicking on Properties, to the right of Firewall (also located in Configuration > Security Profile).

Screen Shot 2015-05-19 at 11.39.02 AM

Select SSH Server, then Firewall.

Screen-Shot-2015-05-19-at-11.39.38-AM

Here, you can either select “Allow connections from any IP address,” or, you can select “Only allow connections from the following networks” and enter an IP address or subnet. You can enter multiple IP addresses and subnets, separated with a comma. After making your selection, click OK, and OK again.

Screen-Shot-2015-05-19-at-11.41.13-AM

SSH is now enabled on your ESXi host. You can open up Putty, Terminal, or your favorite SSH client and connect using the same credentials you use to connect to the vSphere Client.

Screen Shot 2015-05-19 at 11.44.17 AM

If you run into any problems, feel free to ask for help in the comments below. If you want to enable SNMP for remote monitoring, check out my post on enabling SNMP on ESXi 5 / 5.5 / 6. Thanks!

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *