In this tutorial, we will demonstrate how to install OpenSSH SFTP server on Kali Linux Latest.
Before you begin with the installation process, ensure that you have:
Let's start by updating the Kali Linux system by running the following command in the terminal:
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install openssh-server
sudo service ssh start
By default, the OpenSSH server is configured to allow SFTP access for all users. However, if you want to restrict SFTP access to certain users, you can do so by editing the sshd_config
file.
Run the following command in the terminal to open the sshd_config
file:
sudo nano /etc/ssh/sshd_config
Find the Subsystem sftp /usr/lib/openssh/sftp-server
line in the file and uncomment it by removing the #
symbol from the beginning of the line.
Save the changes by pressing Ctrl+X
, then Y
, and finally Enter
.
Once the file is saved, reload the SSH configuration by running the following command:
sudo service ssh reload
To test the OpenSSH server, you can use any SFTP client application such as FileZilla or WinSCP.
Open your SFTP client and enter the following information:
We've successfully installed and configured OpenSSH SFTP server on Kali Linux Latest. You can now use this server to securely transfer files in and out of your Kali Linux system.
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!