:Author: Josh VanderLinden <firstname.lastname@example.org>
:Copyright: public domain
:Manual group: system tools
autotunnel [-k] [profile]
This program is intended to make it easy to establish a single or multiple
#. to launch and create the tunnels
#. to kill an existing set of tunnels for a given profile
[-k] Kill the specified profile. If the profile is omitted, the
determine if a profile is already running or not. If two profiles have the same
`AUTOSSH_PORT`, only one of the two profiles may be running at one time.
START TUNNELS AUTOMATICALLY A T B OOT
+ A B
It's very important that you setup pre-shared key (PSK) authentication between
went well, you should now be able to SSH into `remote_host` as `remote_user`
without entering a password. If not, Google is your friend.
You have two options for starting the tunnels automatically at boot time. The
systemctl enable autotunnel@profile
If you're using ``supervisord``, you should be able to just copy or symlink the
Tunnels are very powerful. They allow you to access remote systems by using
The profile template allows you to configure both of these types of tunnels.
You can configure your normal tunnels by specifying them in the ``TUNNELS``
Reverse tunnels allow you to access ports on your local machine by accessing
+Slightly More Advanced Tunnels
+There are a lot of neat things you can do with tunnels. I will leave it up to
+you to Google the more advanced things, but I would just like to mention
+something. You may have noticed that all of the above examples have `localhost`
+in them. This is not absolutely necessary--you can be the hostname or IP of
+another system on the network.
+For example, say I have 3 PCs. PC A is my machine at work. PC B is my laptop at
+home. PC C is my desktop at home. My home router is configured to forward all
+traffic to PC B, but I want to access PC C from PC A.
+To do this, I can setup a normal tunnel to PC B as such::
+Then I can SSH into PC C from PC A by issuing a command like::
+ ssh pc_c_user@localhost -p 2222
SOCKS proxies are a way for you to proxy network traffic through an SSH