How to Uninstall and Install sshuttle Ubuntu 22.04

Updated: September 22, 2022

Sshuttle makes it possible to access remote networks using SSH. It creates a transparent proxy server, using iptables, that will forward all the traffic through an SSH tunnel to a remote copy of sshuttle. In this guide, I will show you how to install sshuttle on Ubuntu 22.04.

Software Requirement

  • OS: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Make sure you are able to execute sudo commands.

Prerequisites to install sshuttle on Ubuntu 22.04

Install sshuttle Ubuntu 22.04

sshuttle is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one you believe is simple and easy to follow.

Install sshuttle using APT

This is one of the most popular methods for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these instructions to get sshuttle on your Ubuntu 22.04.

Step 1: Obtain new packages from Ubuntu by updating the APT database. Opening the terminal and executing the following Linux command:

sudo apt-get -y update

Step 2: Start installing the packages on Ubuntu 22.04. You can now install sshuttle Ubuntu by executing this command in the terminal.

sudo apt -y install sshuttle

Install sshuttle using Aptitude

If you didn’t install Aptitude on Ubuntu, you need to install it by executing this command.

sudo apt -y install aptitude

After installing aptitude, you can now install sshuttle, just following these steps:

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to fetch new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt -y update

Step 2: Start the package installation on Ubuntu 22.04. You can now install sshuttle Ubuntu by executing this command in the terminal.

sudo aptitude -y install sshuttle

Uninstall sshuttle on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu is difficult? You are mistaken; Anyone can easily uninstall any program, not just sshuttle.

You can uninstall sshuttle Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove sshuttle

To uninstall sshuttle and remove its data and dependencies, you can also use the following command:

sudo apt autoremove --purge sshuttle

Ending

In this guide, I showed you ways to install sshuttle on Ubuntu 22.04 and some ways to uninstall sshuttle too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.