How to Enable ssh Access for a Privileged User in VMware ESXi 4.1

On the previous post, i have teach you on how to create the additional user on VMware ESXi 4.1 host. That new user will successfully connect to ESXi host using vSphere client but will failed when you try to connect using ssh access. This error message will be prompted:

    Access Denied
    

Example:

    Login as: demoroot
    demoroot@ESXi4.1host's password:
    Access denied
    

To resolve this issue, follow below steps:

1. Connect the ESXi 4.1 host via Tech Support mode (local or remote SSH) as the root user.
2. Issue the following commands:

READ  How to Install and Configure NTP Server On CentOS 6.2

usermod -s /bin/ash <username>
mkdir -p /home/<username>
chown <username> /home/<username>

Example:

    ~ # usermod -s /bin/ash demoroot
    ~ # mkdir -p /home/demoroot
    ~ # chown demoroot /home/demoroot
    

Reference

Leave a Reply

Your email address will not be published. Required fields are marked *

SiteGround.com

A world leading hosting company that provides fully-managed innovative and secure solutions, suitable for hosting small to medium-sized websites

Built on the best available technologies combined with Google Cloud for strong redundancy and application availability. Backed by skilled experts to address web security threats, a devops team to create advanced custom security solutions, and 24/7 sysadmins to watch over the platform. This powerful, hands-on approach makes your sites faster, safer, and easier to manage. Starting from only $3.95/mo.

TRY FREE

* up to 30 days money back guarantee