Question

Setup SFTP Access for VaultPress

Posted November 25, 2014 2k 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.

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.

×
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

Submit an Answer