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.

  1. Install ssh:

    sudo apt install ssh
    
  2. 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
    
  3. Restart the ssh service by running:

    sudo systemctl restart ssh
    
  4. Create group and user:

    sudo addgroup sftp
    sudo useradd -m fdo_sftp -g sftp
    sudo passwd fdo_sftp
    sudo chmod 0700 /home/fdo_sftp