Question

Creating non-root user with ssh

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?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

@marianorovin 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?

This comment has been deleted

Hi @marianorovin You login with your key as root and then create a new user with the command adduser marianorovin https://www.digitalocean.com/community/tutorials/how-to-add-and-delete-users-on-a-centos-7-server