Ubuntu Nginx server build

SSH

Setup Retrictive SFTP With Chroot On Ubuntu 16.04 / 17.10 And 18.04

SSH service fail

Try purging before install:

Try:

sudo apt-get remove --purge openssh-server
sudo apt-get install openssh-server

Then try:

sudo service ssh restart
To check its status:

sudo service ssh status

Edit SSH config

sudo nano /etc/ssh/sshd_config

sudo chown erikchen:erikchen /var/sftp/uploads

usermod -m -d /var/www/ erikchen

Restart SSHD

systemctl restart sshd