Monday, April 15, 2013

Enabling ssh for non root users in esxi 5.x

Issue: User named 'test' needs ssh access to the esxi 5.x host.
Resolution: edit /etc/security/access.conf
login as root via ssh to the host and
vi /etc/security/access.conf

+:dcui:ALL
+:root:ALL
+:vpxuser:ALL
-:test:ALL
+:UserToGiveSSHTo:ALL
-:ALL:ALL
 and change it to

+:dcui:ALL
+:root:ALL
+:vpxuser:ALL
+:test:ALL
+:UserToGiveSSHTo:ALL
-:ALL:ALL
now you can log in to the esxi 5.x host using the username test but this is temporary since the changes to the file /etc/security/access.conf will be reverted to the original settings after a restart of the management services or the host reboot. You can take care of that by backing up the settings to the startup configuration by a simple command
/sbin/auto-backup.sh