Fun and Profit with Reverse SSH Tunnels and AutoSSH

Sometimes you just need to get to things remotely.  Those things might be behind an unbudging firewall with no way to forward proper ports for remote access, or perhaps you just want it setup access to resources this way.  I recently needed to establish a persistent connection to a new Raspberry Pi setup remotely where the ISP did not allow proper port forwards.  Luckily you can use reverse SSH tunneling and 

Jailkit @debian

How to Create jail

1. Create the binary for debian
apt-get install build-essential autoconf automake libtool flex bison debhelper binutils-gold
tar xvzf jailkit-2.19.tar.gz
cd jailkit-2.19
echo 5 > debian/compat
./debian/rules binary
cd ../
dpkg -i jailkit_2.19-1_amd64.deb