How to setup SFTP in Ubuntu
1. Check SSH is installed ‘or’ not sudo systemctl status ssh 2. Install SSH if not install sudo apt install ssh 3. Edit the sshd_config to override the setting and add below setting sudo nano /etc/ssh/sshd_config Match group sftp ChrootDirectory /opt/odoo_backups X11Forwarding no AllowTcpForwarding no ForceCommand internal-sftp 4. Add Group and User sudo addgroup sftp && sudo useradd ftpaccount -g sftp 5. Change the password for FTP User sudo passwd sftpuser ( ftpaccount ) 6. Allow read write permission to FTP Folder for the user sudo chmod 700 /opt/odoo_backups/ Note: check folder owner is ftpaccount 7. Verify User are able to connect SFTP sftp ftpaccount @localhost ...