OpenSSH is a free and open-source secure shell protocol suite that provides secure encrypted communications between two untrusted hosts over an insecure network. In this tutorial, we will show you how to install OpenSSH SFTP server on a Fedora Server Latest operating system.
Before we begin, make sure you have a Fedora Server Latest installed and has the following prerequisites:
Start by opening the terminal on your Fedora Server Latest and run the following command to install OpenSSH:
sudo dnf install openssh-server
After installing OpenSSH server, you need to configure it by editing the sshd_config
file. Open the file by running the following command:
sudo vi /etc/ssh/sshd_config
Once you open the file, find the following line:
#Subsystem sftp /usr/libexec/openssh/sftp-server
Uncomment the line by removing the hash "#" symbol, so it will look like this:
Subsystem sftp /usr/libexec/openssh/sftp-server
Save and exit the file by pressing Esc
then enter :wq
then press enter.
After editing the sshd_config
file, you need to restart the OpenSSH server to apply the changes by running the following command:
sudo systemctl restart sshd
To verify the OpenSSH SFTP server installation, you need to connect to the server using a client application. For example, you can use FileZilla or WinSCP.
In this tutorial, we will use the sftp
command-line client to connect to the server. Run the following command to connect to the server:
sftp <username>@<ip-address>
Replace <username>
with your username and <ip-address>
with the IP address of the server.
Once you connect successfully, you will see the SFTP prompt. You can now transfer files securely between the server and the client.
In this tutorial, you learned how to install and configure OpenSSH SFTP server on Fedora Server Latest. You also learned how to connect to the server using the sftp command-line client. We hope you found this tutorial helpful.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!