Solved

Enabling SSH access on ESXi

Posted on 2012-04-10
8
689 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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 120
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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Suggested Solutions

In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
Ransomware is a malware that is again in the list of security  concerns. Not only for companies, but also for Government security and  even at personal use. IT departments should be aware and have the right  knowledge to how to fight it.
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

734 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