VMware vSphere

 View Only
  • 1.  How do I grant a user shell access?

    Posted Sep 01, 2011 08:16 PM

    I recently enabled ssh (Remote Tech Support) through the security profile feature and I'm able to ssh using putty into the host. However, I'm unable to ssh using any other user I've created.

    I did some research and almost everything I found points to enabling "grant shell acces to this user" while creating a new account. However, I don't have that checkbox. My guess is that, it was removed from ESXi 4.1. Is there another way to enable ssh for a regular user I create? I want to avoid having to use root to ssh onto the host.



  • 2.  RE: How do I grant a user shell access?

    Posted Sep 01, 2011 09:22 PM

    Try adduser from the ESXi console.



  • 3.  RE: How do I grant a user shell access?

    Posted Sep 01, 2011 09:46 PM

    You can grant the user account the admin role on the host and they should then be able to login via SSH.

    What are you trying to do via the console.  You mention a regular user, but typically you don't give a regular user access to the console.

    If you're using AD you can also integrate with AD to allow use of AD accounts, but those accounts would still require admin rights on the host to connect via SSH.



  • 4.  RE: How do I grant a user shell access?

    Posted Sep 02, 2011 12:50 PM

    We are trying to put in place a shutdown script that will basically shutdown all the guests and host (ESXi server) after a power outage. The script will be kicked off by the apc deamon.

    The goal is to ssh to the ESXi server as a non root user, then su - as root.

    I granted root access (which defeats my goal) to the user I created but that user is still unable to log in using ssh. I can however use the default root account to login using ssh.