Setup SFTP Access for VaultPress

November 25, 2014 1.9k views

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.

2 Answers

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

thanks @ryanpq did the trick for me

Have another answer? Share your knowledge.

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