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 Check Disk Read Write Speed in Linux

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 *