For added convenience, [autossh](https://linux.die.net/man/1/autossh) can be used to automatically create and maintain this SSH tunnel.  On the Attacker Linux VM, create a `config` file in the your `.ssh` directory.

ubuntu@teamserver ~/.ssh> vim .ssh/config

  

Then add the following content:

Host                 redirector-1
HostName             10.10.5.39
User                 ssh-user
Port                 22
IdentityFile         /home/ubuntu/ssh-user
RemoteForward        8443 localhost:443
ServerAliveInterval  30
ServerAliveCountMax  3

  

The tunnel can now be started with the following command:

ubuntu@teamserver ~> autossh -M 0 -f -N redirector-1

Where:

-   `-M` 0 disables the autossh monitoring port (in favour of OpenSSH's built-in `ServerAliveInterval` and `ServerAliveCountMax` capabilities).
-   `-f` tells autossh to run in the background.
