I signed up with VaultPress to do backups of my wordpress blog. I would like to give them access using SFTP but I am not really sure how to add a new account.
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!
You can add a new user with SFTP access by doing the following where the username you are creating is “newuser”:
useradd newuser
passwd newuser
usermod -m -d /path/to/new/home/dir newuser
The first command “useradd” will create the new user. The “passwd” command will prompt you to create a new password for the user The “usermod” command sets a home directory for this new user.
You may also want to add the user to a group with permissions to the files you want this account to access. If this is your web root you can use:
useradd -g www-data newuser
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.