Creating non-root user with ssh

Posted May 14, 2017 38.7k views
CentOSGetting Started

Hey guys,

I just created a new droplet with ssh keys and what i want is to create a non-root user and login it using putty without using the root user.

Any suggestions on how to do it?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers

Hi @marianorovin
You login with your key as root and then create a new user with the command
adduser marianorovin

by Josh Barnett
When you first start using a fresh Linux server, adding and removing users is one of the most basic tasks that you should know how to do. In this guide, we will cover how to create user accounts, assign `sudo` privileges, and delete users on a CentOS 7 server.

I’m probably just tired, but just to make sure: Do you want the new users to be able to access the server with a password or do you want them to use a key like root?