VMware Cloud Community
Khue
Enthusiast
Enthusiast

Creating SSH Users

I would like to restrict PermitRootLogin in the SSHD config. Therefore I need to create some new users who have access to SSH into some individual ESX 4 boxes. How can I go about accomplishing this? Is it as straight forward as just doing a useradd command from the shell? Thanks!

Reply
0 Kudos
4 Replies
weinstein5
Immortal
Immortal

Yes it is that straightforward - you can also add users through the vSphere client when connected directly to the ESX host -

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
Khue
Enthusiast
Enthusiast

Thanks much. I was just making sure that there wasn't anything else that had to be done.

Reply
0 Kudos
msemon1
Expert
Expert

If you restrict SSH access for root, which you should, then useradd should be fine for new users. To get admin privileges they can can use Sudo or Su - for root access.

Mike

Reply
0 Kudos
Khue
Enthusiast
Enthusiast

Yeah thats generally best practice for most Linux boxes. When I upgraded from 3.5 to 4.0, it appears like I either left off the option to add new users or I was never prompted. I am in the process of locking down most of these servers right now. This is the newest list item I am working on. Thanks for the input.

Reply
0 Kudos