Step 2: SFTP Server Setup#
In this example, the SFTP server sits on the edge node. In other configurations, it can be on any system in the same network as the control plane.
Install ssh:
sudo apt install ssh
Edit the
/etc/ssh/sshd_config
file:sudo nano /etc/ssh/sshd_config
If not done during machine preparation, add the following lines at the end of the file:
Match group sftp ChrootDirectory /home X11Forwarding no AllowTcpForwarding no ForceCommand internal-sftp
Restart the ssh service by running:
sudo systemctl restart ssh
Create group and user:
sudo addgroup sftp sudo useradd -m fdo_sftp -g sftp sudo passwd fdo_sftp sudo chmod 0700 /home/fdo_sftp