How to create an SFTP user?

October 20, 2019 135 views
Configuration Management

How to create an SFTP user?
I tried to connect via SFTP with the root user.
The system denies authorization.
I guess for security reasons.
How do I create another user and give him SSH / SFTP permissions?
Please step by step instruction :(

1 Answer

Hello,

I would recommend taking a look at this step by step guide on how to create a non-root user with sudo privileges:

https://www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-ubuntu-quickstart

Then you could use that user to connect via SFTP.

Regards,
Bobby

by Mitchell Anicas
The sudo command provides a mechanism for granting administrator privileges, ordinarily only available to the root user, to normal users. This guide will show you the easiest way to create a new user with sudo access on Ubuntu, without having to modify your server's sudoers file.
Have another answer? Share your knowledge.