sshuttle is a free, open-source tool that allows you to tunnel TCP and UDP traffic over an SSH connection. In this tutorial, we will guide you on how to install sshuttle on Ubuntu Server Latest using the command line.
Before you begin, ensure that you have the following:
To ensure that your Ubuntu server is up-to-date, you need to run the following command:
sudo apt update && sudo apt upgrade
sshuttle is not available in the default Ubuntu repositories, but you can install it via the pip
package manager. First, we need to install pip on your Ubuntu server by running the following command:
sudo apt install python3-pip
Once pip is installed, you can now install sshuttle by running the following command:
sudo pip3 install sshuttle
After the installation is complete, verify whether sshuttle is installed by running the following command:
sshuttle --help
If sshuttle is installed correctly, you should see output that displays the available options and commands.
To use sshuttle, you need to connect to a remote server via ssh. Let's assume the following:
123.45.67.89
22
user123
To connect to the remote server via ssh using sshuttle, run the following command:
sudo sshuttle -r user123@123.45.67.89 0/0 -vv
Once you successfully connect, all your traffic will be routed through the remote server. To disconnect from sshuttle, press Ctrl + C
.
You have successfully installed sshuttle on Ubuntu Server Latest and learned how to use it to tunnel TCP and UDP traffic over an SSH connection.
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!