Skip to content

Instantly share code, notes, and snippets.

View sam-suresh's full-sized avatar

Sam Suresh sam-suresh

View GitHub Profile
@sam-suresh
sam-suresh / add-ssh-user.bash
Last active August 13, 2019 22:32 — forked from edheltzel/ADD_SFTP_User.md
steps to create new SFTP user/account
#### This is mainly for VMs managed by ServerPilot control panel using Ubuntu 14.04
#### But in theory will work for VMs in general ie: DigitalOcean or AWS instance
#### 1 Add new user
useradd mudotmy
#### 2 Follow on screen prompts - this will allow SFTP with the password set from the prompts
#### If there are no prompts just move on to Step 3 You will reset the password in the last step
#### 3 Update user's home directory to ServerPilots Apps OR vim /etc/passwd to change the new users path