Sshwifty is a tool that can be used to perform port forwarding through SSH tunnels. In order to install and use Sshwifty on Kali Linux Latest, follow the steps below.
Before installing Sshwifty, make sure that the necessary dependencies are installed on the system. Open a terminal and enter the following command:
sudo apt-get install python3 python3-pip python3-venv
This will install the necessary dependencies for Sshwifty to run.
Navigate to the directory where you want to store Sshwifty. Then, use the git clone
command to clone the repository from GitHub:
git clone https://github.com/nirui/sshwifty.git
This will download the latest version of Sshwifty from the GitHub repository.
In order to keep Sshwifty separate from other Python packages on the system, it is recommended to create a virtual environment. Navigate into the sshwifty directory and run the following commands:
cd sshwifty
python3 -m venv venv
source venv/bin/activate
This will create a virtual environment and activate it.
Once the virtual environment is active, install Sshwifty using pip:
pip3 install -r requirements.txt
This will install all the required packages for Sshwifty.
Now that Sshwifty is installed, you can use it by running the following command:
python3 sshwifty.py <options>
Replace <options>
with the appropriate options for your use case. For example, to forward local port 1234 to remote port 5678 via SSH, you would run the following command:
python3 sshwifty.py -l 1234:localhost:5678 remoteuser@remotehost
This will establish an SSH tunnel and forward traffic from local port 1234 to remote port 5678.
In this tutorial, you learned how to install Sshwifty on Kali Linux Latest. By following the steps outlined above, you should now be able to use Sshwifty to perform secure port forwarding through SSH tunnels.
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!