KWh meter setup: verschil tussen versies
Regel 1: | Regel 1: | ||
− | The remote display depends on a SSH tunnel on the [[MTA-Setup|MTA]] | + | The remote display depends on a SSH tunnel on the [[MTA-Setup|MTA]]. |
− | + | File in systemd at: /etc/systemd/system/kwh-tunnel.service: | |
− | |||
− | |||
− | |||
− | |||
− | [Service] | + | [Unit] |
− | ExecStart=/usr/bin/ssh -i /etc/kwh-meter-tunnel -l dirkx -p 222 -NT -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -L 9999:192.168.6.111:80 83.163.200.191 - | + | Description=Tunnel to kWh meter. |
+ | After=network.target | ||
+ | |||
+ | [Service] | ||
+ | ExecStart=/usr/bin/ssh -i /etc/kwh-meter-tunnel -l dirkx -p 222 -NT -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -L 9999:192.168.6.111:80 83.163.200.191 - | ||
+ | |||
+ | RestartSec=30 | ||
+ | Restart=always | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
− | + | and this is received by a SSH authorized key line on the space machine: | |
− | |||
− | + | no-pty,permitopen="192.168.6.111:80" ssh-rsa AAAAB3NzaC1yc2EA....NFlObjqxPGezJYI0wMNlI9XiP purely-the-tunnel to the kWh meter | |
− | |||
− |
Versie van 20 nov 2020 om 11:28
The remote display depends on a SSH tunnel on the MTA.
File in systemd at: /etc/systemd/system/kwh-tunnel.service:
[Unit] Description=Tunnel to kWh meter. After=network.target [Service] ExecStart=/usr/bin/ssh -i /etc/kwh-meter-tunnel -l dirkx -p 222 -NT -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -L 9999:192.168.6.111:80 83.163.200.191 - RestartSec=30 Restart=always [Install] WantedBy=multi-user.target
and this is received by a SSH authorized key line on the space machine:
no-pty,permitopen="192.168.6.111:80" ssh-rsa AAAAB3NzaC1yc2EA....NFlObjqxPGezJYI0wMNlI9XiP purely-the-tunnel to the kWh meter