This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
router_to_router_ssh [2021/09/21 18:40] – hogwild | router_to_router_ssh [2023/05/24 02:08] (current) – [Notes] -changed subhead to "Passwordless Router-to-Router SSH Notes" hogwild | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Enable | + | ====== Enable Password-less Router-to-Router SSH Encryption ====== |
===== Overview ===== | ===== Overview ===== | ||
- | FreshTomato includes [[https:// | + | This setup allows |
- | ===== How To ===== | + | FreshTomato includes [[https:// |
- | \\ 01 - On the primary | + | * When the the secondary |
+ | | ||
+ | * As seen below, for switching wireless radio(s) on or off on a schedule (not shown). | ||
- | \\ {{: | + | ===== Setting up/ |
- | \\ 02 - Copy+Paste the “Public Key portion” | + | Follow these steps to generate a Keypair and establish an SSH tunnel: |
- | \\ {{: | + | - On the primary router (the one issuing SSH commands) generate a Keypair by typing the command: \\ " |
+ | - Copy the Public key portion from the primary router and paste it into the “Authorized Keys” field in secondary 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, | + | \\ |
- | \\ 03 - 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 is executed locally [**nvram get lan_hostname**]. | + | \\ |
- | \\ {{: | ||
- | \\ **Example** | + | ===== Usage Example |
- | Enable/Disable | + | This example will enable/disable |
- | \\ 01 - Status before [Primary | + | - This screenshot shows the status display of the Primary router before before the command is run: \\ \\ {{: |
+ | - Now, we run the command (//ssh root@192.168.10.1 radio toggle 1//): \\ \\ {{: | ||
+ | - This shows the status display after the command is run: \\ \\ {{: | ||
- | \\ {{: | + | \\ |
- | \\ 02 - Command [**ssh root@192.168.10.1 radio toggle 1**] executed. | + | \\ |
- | \\ {{: | ||
- | \\ 03 - Status after. | + | ===== Passwordless Router-to-Router SSH Notes ===== |
- | \\ {{: | + | |
- | + | * The key generated | |
- | [If the same command is repeated, eth1 will be switched | + | * Either keep a copy of the "id_dropbear" |
- | + | * Be prepared to repeat | |
- | \\ **Notes** | + | * This guide was produced using [[https:// |
- | + | * Inspiration | |
- | \\ SSH must be enabled on both routers. | + | * The process was first documented [[https:// |