How to Setup SFTP Server on Fedora 39

To set up an SFTP server on Fedora 39, follow the steps below.

Step 1 : Ensure that the SSH daemon (sshd) is installed and running.

Step 2 : Open sshd_config and Add SFTP Config

Edit the sshd configuration file to include SFTP settings.

Add the following lines at the end:

Step 3 : Restart the SSH daemon to apply the changes.

Step 4 : Create a group for SFTP users.

Step 5 : Add a new user for SFTP access.

Step 5 : Set a password for the SFTP user.

Step 6 : Assign the user to the SFTP group.

Step 7 : Adjust permissions for the SFTP directory.

Step 9 : Restart SSH Service

Restart the SSH service to apply UFW changes.

Step 10 : Test Connection

- Open SFTP Client (FileZilla)

- Add Site

  • Enter "Host"
  • Select "SFTP - SSH File Transfer Protocol"
  • Set "Port" to 22.
  • Choose "Normal," enter username and password


- Click "Connect"

Congratulations, you have successfully set up an SFTP server on Fedora 39.