How To Install sidedoor on Ubuntu 20.04
Introduction
In this tutorial we learn how to install sidedoor
on Ubuntu 20.04.
What is sidedoor
sidedoor is:
sidedoor maintains an SSH connection or tunnel with a shell script daemon.
The primary use case is maintaining a remote port forward to the local SSH server (or another port). Thus, the local device can be accessed without using incoming connections that may be blocked by a NAT or firewall or otherwise impractical with mobile devices.
SSH clients can connect to the device via the reverse SSH proxy that sidedoor tunnels to. This proxy server can be untrusted and run by a third party or cloud service.
sidedoor enables SSH keepalives and retries SSH with exponential backoff. In order to reconnect as soon as possible, it resets the backoff when a network interface is brought up (or changed).
Refer to the sidedoor man page to configure and set SSH keys.
There are three methods to install sidedoor
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install sidedoor Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install sidedoor
using apt-get
by running the following command:
sudo apt-get -y install sidedoor
Install sidedoor Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install sidedoor
using apt
by running the following command:
sudo apt -y install sidedoor
Install sidedoor Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install sidedoor
using aptitude
by running the following command:
sudo aptitude -y install sidedoor
How To Uninstall sidedoor on Ubuntu 20.04
To uninstall only the sidedoor
package we can use the following command:
sudo apt-get remove sidedoor
Uninstall sidedoor And Its Dependencies
To uninstall sidedoor
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove sidedoor
Remove sidedoor Configurations and Data
To remove sidedoor
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge sidedoor
Remove sidedoor configuration, data, and all of its dependencies
We can use the following command to remove sidedoor
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge sidedoor
References
Summary
In this tutorial we learn how to install sidedoor
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.