Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:guide-user:services:ssh:autossh [2018/08/18 04:16] – antiver | docs:guide-user:services:ssh:autossh [2022/03/25 10:50] – [Run as Service] trendy | ||
|---|---|---|---|
| Line 43: | Line 43: | ||
| ===== Run as Service ===== | ===== Run as Service ===== | ||
| - | Autossh is ofen used as reverse proxy. It's probably because your ISP does not give you a publlic | + | Autossh is often used as reverse proxy. It's probably because your ISP does not give you a public |
| - | In ''/ | + | In ''/ |
| - | < | ||
| - | local section=" | ||
| - | config_get ssh " | + | |
| - | config_get gatetime " | + | local section=" |
| - | config_get monitorport " | + | |
| - | config_get poll " | + | |
| - | config_get_bool enabled " | + | config_get gatetime " |
| + | config_get monitorport " | ||
| + | config_get poll " | ||
| + | config_get_bool enabled " | ||
| + | |||
| + | [ " | ||
| + | |||
| + | procd_open_instance | ||
| + | procd_set_param command / | ||
| + | procd_set_param respawn ${respawn_threshold: | ||
| + | procd_set_param env AUTOSSH_GATETIME=" | ||
| + | procd_set_param env AUTOSSH_POLL=" | ||
| + | procd_set_param env HOME="/ | ||
| + | procd_close_instance | ||
| - | [ " | ||
| - | export HOME=/root | ||
| - | export AUTOSSH_GATETIME=" | ||
| - | export AUTOSSH_POLL=" | ||
| - | export AUTOSSH_DEBUG=1 | ||
| - | service_start / | ||
| - | </code> | + | Now you can enable the service by '' |
| ===== Fixes ===== | ===== Fixes ===== | ||
| To get ssh working you need to replace '' | To get ssh working you need to replace '' | ||