This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
router_to_router_ssh [2024/10/31 22:28] – [Usage Example] -Formatting hogwild | router_to_router_ssh [2024/10/31 22:39] (current) – [Setting up/Establishing a Tunnel] hogwild | ||
---|---|---|---|
Line 12: | Line 12: | ||
* For running scripts on the secondary router using supported commands. | * For running scripts on the secondary router using supported commands. | ||
* As seen below, for switching wireless radio(s) on/off on a schedule (not shown). | * As seen below, for switching wireless radio(s) on/off on a schedule (not shown). | ||
- | |||
===== Setting up/ | ===== Setting up/ | ||
Line 18: | Line 17: | ||
Follow these steps to generate a Keypair and establish an SSH tunnel: | 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: | + | - 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: \\ \\ {{: | + | - 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, | - In the above screenshot, a pre-existing, | ||
- | - Now, connect to the secondary router via SSH (running on the primary router). | + | - Now, connect to the secondary router via SSH (running on the primary router). |
\\ | \\ | ||
Line 32: | Line 31: | ||
===== Usage Example ===== | ===== Usage Example ===== | ||
- | This example enables/ | + | This example enables/ |
- This screenshot shows the Primary router' | - This screenshot shows the Primary router' | ||
Line 43: | Line 42: | ||
\\ | \\ | ||
- | |||
===== Passwordless Router-to-Router SSH Notes ===== | ===== Passwordless Router-to-Router SSH Notes ===== | ||
Line 51: | Line 49: | ||
* Either keep a copy of the " | * 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. | * 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:// |
- | * The process was first documented [[https:// | + | |
+ | Inspiration was provided by [[https:// | ||
\\ | \\ |