Hello,
if anyone interested, here is Autossh addon compiled for Rpi2 platform.
Hello,
if anyone interested, here is Autossh addon compiled for Rpi2 platform.
It will be available shortly in the system-tools add-on
I know it's 2 years old but need to ask really How can I operate with this add-on ?
Got script ready but don't think locations will work ? Also don't get what's this is ? "7474:127.0.0.1:7474"
QuoteDisplay More
Description=Keeps a tunnel to 'remote.example.com' open
After=network.target
[Service]
User=autossh
# -p [PORT]
# -l [user]
# -M 0 --> no monitoring
# -N Just open the connection and do nothing (not interactive)
# LOCALPORT:IP_ON_EXAMPLE_COM:PORT_ON_EXAMPLE_COM
ExecStart=/usr/bin/autossh -M 0 -N -q -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" -p 22 -l autossh remote.example.com -L 7474:127.0.0.1:7474 -i /home/autossh/.ssh/id_rsa
[Install]
WantedBy=multi-user.target
I know it's 2 years old but need to ask really How can I operate with this add-on ?
Got script ready but don't think locations will work ? Also don't get what's this is ? "7474:127.0.0.1:7474"
Borygo77 See you didn't have any update on this. I opened another topic asking for help with AutoSSH.
Maybe you managed to configure this on LE? If yes, could you please help me out?
Thanks
I am using following autossh.sh
if pgrep "autossh" > /dev/null
then
:
else
autossh -M 0 -f -N -R <target_machine_availability_port>:localhost:22 <target_machine> -p <target_machine_ssh_port> -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -o "ExitOnForwardFailure yes"
fi
keys are setuped between Rpi <--> Target_machine already, so simple ssh <target_machine> -p <target_mchine_ssh_port> works out of the box from Rpi shell.
+ just to be sure, crontab item
I am using following autossh.sh
Codeif pgrep "autossh" > /dev/null then : else autossh -M 0 -f -N -R <target_machine_availability_port>:localhost:22 <target_machine> -p <target_machine_ssh_port> -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -o "ExitOnForwardFailure yes" fi
keys are setuped between Rpi <--> Target_machine already, so simple ssh <target_machine> -p <target_mchine_ssh_port> works out of the box from Rpi shell.
+ just to be sure, crontab item
Many thanks! I do get the autossh options, but not sure about the tunnel. I want two ports from remote server to be tunneled to my local client, lets say ports 9111 and 9112. The remote server SSH is listening on port 1255.
And where do you put/edit the autossh.sh in Libreelec?