Create FTP User on ubuntu
We will now create a new user that we will use to log into FTP. In this example, we will create a new user called
sudo adduser ftpuser
You may also be asked to enter some contact information. You can just press
ENTER to each of these.
If you only want
ftpuser to log in via FTP, you should disable their SSH access by blacklisting their username in the SSH config file. Otherwise, skip to Step 4.
Open the SSH config in nano.
sudo nano /etc/ssh/sshd_config
Add the following to the bottom of the file replacing
ftpuser with the user you want to deny SSH and SFTP access. You can add multiple users here separated by a single space. (To paste in nano, press the right mouse button).
To save file and exit, press
Y and then press
Restart the SSH service.
sudo service sshd restart