Solved

Enabling SSH access on ESXi

Posted on 2012-04-10
8
667 Views
Last Modified: 2012-04-17
Can SSH be enabled on ESXi host through VCenter? Or do you have to access the host directly?
0
Comment
Question by:sarasotamac
8 Comments
 
LVL 40

Expert Comment

by:coolsport00
ID: 37827670
Should be able to on the host via Client if you're on v5:
http://www.thomasmaurer.ch/2011/08/enable-ssh-on-esxi-5-via-vsphere-client/

~coolsport00
0
 
LVL 17

Expert Comment

by:Anuroopsundd
ID: 37827674
Tech Support Mode (TSM) provides a command-line interface that can be used by the administrator to troubleshoot and correct abnormal conditions on VMware ESXi hosts. TSM can be accessed in two ways:
•Logging in directly on the console of the ESXi server.
•Logging in remotely via SSH.

To enable local or remote TSM from the vSphere Client:
 
1.Select the host and click the Configuration tab.
2.Click Security Profile > Properties.

     ESXi 5.0: Select SSH or ESXi Shell and click Options.
     ESXi 4.1: Select Local Tech Support or Remote Tech Support (SSH) and click Options.


3.Choose the desired startup policy and click Start, then click OK.
4.Verify that the daemon selected in step 3 shows as running in the Services Properties window

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1017910
0
 
LVL 17

Accepted Solution

by:
Anuroopsundd earned 500 total points
ID: 37827681
To enable local or remote TSM from the Direct Console User Interface (DCUI):
 
1.At the DCUI of the ESXi host, press F2 and provide credentials when prompted. Press F2 again to proceed.
2.Scroll to Troubleshooting Options and press Enter. This opens the Troubleshooting Mode Options wizard.
3.To enable local TSM allowing users to log into the virtual console of the ESXi host.

    ESXi 5.0: Select Enable ESXi Shell and press Enter. The right-hand panel mode should now indicate the "ESXi Shell is Enabled".
    ESXi 4.1: Select Local Tech Support and press Enter. The right-hand panel mode should now indicate the "Local TSM  is Enabled".


4.To enable remote TSM allowing users to login via SSH on the virtual console of the ESXi host.

    ESXi 5.0: Select Enable SSH and press Enter.   The right-hand panel mode should now indicate the "SSH is Enabled".
    ESXi 4.1: Select Remote Tech Support (SSH) and press Enter.  The right-hand panel mode should now indicate the "Remote TSM (SSH) is Enabled".


5.Optionally, if you want to configure the timeout for TSM:

     ESXi 5.0: Select Modify ESXi Shell timeout and press Enter. Input the desired timeout value in minutes and press Enter.
     ESXi 4.1: Select Modify Tech Support timeout and press Enter. Input the desired timeout value in minutes and press Enter.


6.Press Esc three times to return to the main DCUI screen.
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1017910
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 40

Expert Comment

by:coolsport00
ID: 37827686
ANd here is the VMware KB just as FYI - http://kb.vmware.com/kb/2004746
0
 
LVL 6

Author Comment

by:sarasotamac
ID: 37827706
Thanks. Follow up question. Can the host root password be reset from SSH?
0
 
LVL 40

Expert Comment

by:coolsport00
ID: 37827724
According to here: http://kb.vmware.com/kb/1317898, the only way to reset a root pwd for ESXi is a reinstall.
0
 
LVL 40

Expert Comment

by:coolsport00
ID: 37827732
Altho...saw this post: http://www.bock.nu/blog/reset-root-password-vmware-esxi-4.1, and this video: http://www.youtube.com/watch?v=CoL43UBpVyI&feature=youtu.be, on how to do it (but I don't recommend it since it's not supported).
0
 
LVL 119
ID: 37828345
Thanks. Follow up question. Can the host root password be reset from SSH?

Yes, type passwd at the console or SSH prompt

~ # passwd
Changing password for root

You can now choose the new password or passphrase.

A valid password should be a mix of upper and lower case letters,
digits, and other characters.  You can use a 7 character long
password with characters from at least 3 of these 4 classes, or
a 6 character long password containing characters from all the
classes.  An upper case letter that begins the password and a
digit that ends it do not count towards the number of character
classes used.

A passphrase should be of at least 3 words, 8 to 40 characters
long, and contain enough different characters.

Alternatively, if noone else can see your terminal now, you can
pick this as your password: "cevzr_Vgnyl=sbeq".

Enter new password:
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
Teach the user how to install ESXi 5.5 and configure the management network System Requirements: ESXi Installation:  Management Network Configuration: Management Network Testing:
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question