Home Linux troubleshooting SFTP server not working

SFTP server not working

Last updated on Jun 03, 2023

If you are not able to connect via SFTP to your server, please make sure the sftp-server binary is properly configured in /etc/ssh/sshd_config.

  1. Find the correct path to the sftp-executable

    $ find / -name sftp-server
    /usr/libexec/openssh/sftp-server
    
    
  2. Replace the sftp configuration in /etc/ssh/sshd_config

    # Replace this
    Subsystem /usr/lib/openssh/sftp-server
    # With the path found at setp 1.
    Subsystem /usr/libexec/openssh/sftp-server
    
    
  3. Restart your sshd server

    systemctl restart sshd