OpenSSH SFTP server is a secure file transfer protocol server that can exchange files between two computers securely. In this tutorial, we will go through the process of installing OpenSSH SFTP server on EndeavourOS.
Before starting, make sure that you have a user account with sudo privileges on your EndeavourOS system.
Start by updating the system to the latest version. For that, open the terminal and run the following command:
sudo pacman -Syu
This command will download and install all the available updates on your system.
To install OpenSSH SFTP server, run the following command in the terminal:
sudo pacman -S openssh
This command will download and install the OpenSSH package, including its SFTP server.
After the installation is complete, we need to configure the OpenSSH server. Open the configuration file of the OpenSSH server using the following command:
sudo nano /etc/ssh/sshd_config
In this file, look for the following line:
#Subsystem sftp /usr/lib/openssh/sftp-server
Remove the '#' symbol from the beginning of the line and replace '/usr/lib/openssh/sftp-server' with 'internal-sftp'. The line should now look like:
Subsystem sftp internal-sftp
Save and close the file.
After making changes to the OpenSSH server configuration file, we need to restart the OpenSSH service for the changes to take effect. Run the following command to restart the OpenSSH service:
sudo systemctl restart sshd.service
Now that we have installed and configured the OpenSSH SFTP server, we can test it by connecting to it using an SFTP client. To do this, we need to use an SFTP client that supports the SFTP protocol. Some popular SFTP clients are FileZilla, WinSCP, and Cyberduck.
Open your SFTP client and connect to the OpenSSH SFTP server by providing the host name or IP address of the EndeavourOS system, along with the user credentials. If the connection is successful, you should be able to exchange files securely between your client and server.
In this tutorial, we have learned how to install and configure the OpenSSH SFTP server on EndeavourOS. Now, you can easily exchange files securely between two computers using the SFTP protocol.
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!