This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
router_to_router_ssh [2021/09/22 01:36] – [Example] hogwild | router_to_router_ssh [2021/09/22 01:38] – hogwild | ||
---|---|---|---|
Line 4: | Line 4: | ||
FreshTomato includes [[https:// | FreshTomato includes [[https:// | ||
- | |||
===== HOWTO ===== | ===== HOWTO ===== | ||
Line 18: | Line 17: | ||
\\ {{: | \\ {{: | ||
- | Note that a pre-existing, | + | 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. | - 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. | ||
\\ {{: | \\ {{: | ||
- | |||
==== Example ==== | ==== Example ==== | ||
- | This example will enable/ | + | This example will enable/ |
\\ | \\ | ||
\\ | \\ | ||
- This shows the status display before ([Primary router) the command is run.\\ {{: | - This shows the status display before ([Primary router) the command is run.\\ {{: | ||
+ | |||
\\ | \\ | ||
+ | |||
- Command [**ssh root@192.168.10.1 radio toggle 1**] executed.\\ {{: | - Command [**ssh root@192.168.10.1 radio toggle 1**] executed.\\ {{: | ||
- | \\ | ||
- | - Here is the status displayed after the command is run. | ||
- | \\ {{: | + | \\ - Here is the status displayed after the command is run. |
- | \\ | + | |
- | \\ | + | \\ {{: |
- | (If the same command is repeated, eth1 will be disabled on the primary router.) | + | |
\\ **Notes** | \\ **Notes** |