Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Enabling SSH access on ESXi

Posted on 2012-04-10
8
Medium Priority
?
703 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 2000 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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

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: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…

670 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