This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
router_to_router_ssh [2021/09/22 01:48] – [Notes]-Added Notes subhead. Bulleted notes hogwild | router_to_router_ssh [2023/05/23 18:06] – [Overview] -added subhead "Setting up/Eablishing a tunnel" hogwild | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Enable | + | ====== Enable Password-less Router-to-Router SSH Encryption ====== |
===== Overview ===== | ===== Overview ===== | ||
- | FreshTomato includes [[https:// | + | This setup allows |
- | \\ | + | |
- | This allows command-line management of the secondary router (or " | + | |
- | ===== HOWTO ===== | + | FreshTomato includes [[https:// |
- | | + | |
+ | | ||
+ | * As seen below, for switching wireless radio(s) on or off on a schedule (not shown). | ||
- | \\ {{: | + | ===== Setting up/ |
- | \\ \\ | + | Follow these steps to generate a Keypair and establish an SSH tunnel: |
- | - Copy and paste the Public key portion from the primary router | + | |
+ | | ||
+ | - In the above screenshot, a pre-existing, | ||
+ | - Now, connect to the secondary router via an SSH session (running on the primary router). | ||
- | \\ {{: | + | \\ |
- | Note that a pre-existing, | + | \\ |
- | - Now, connect to the secondary router from within an SSH session (running on the primary router). The example below uses the **nvram** command to display the host name. The first command string (**ssh root@192.168.10.1 nvram get lan_hostname) **executes the command on the secondary router and then it [nvram get lan_hostname] is executed locally, on the primary router. | ||
- | \\ {{: | + | ===== Usage Example ===== |
- | ==== Example ==== | + | This example will enable/ |
- | This example will enable/ | + | - This screenshot shows the status display of the Primary |
- | + | - Now, we run the command (//ssh root@192.168.10.1 radio toggle 1//): \\ \\ {{: | |
- | - This shows the status display | + | - This shows the status display |
\\ | \\ | ||
- | - Here, the command (**ssh root@192.168.10.1 radio toggle 1**) executed:\\ {{: | + | \\ |
- | + | ||
- | - And here is the status display after the command is run. | + | |
- | {{: | ||
===== Notes ===== | ===== Notes ===== | ||
- | * SSH must be enabled on both routers. | + | * The SSH daemon |
- | * The key generated will be erased after a reboot of the primary | + | * The key generated will be erased after a reboot of the Primary |
+ | * Either keep a copy of the " | ||
+ | * Be prepared to repeat (steps 1. and 2.) after a reboot, removing any redundant key from the secondary router. | ||
* This guide was produced using [[https:// | * This guide was produced using [[https:// | ||
* Inspiration was provided by [[https:// | * Inspiration was provided by [[https:// |