[Rpi2] Autossh addon

  • It will be available shortly in the system-tools add-on

    Edited once, last by lrusak ().

  • 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"


  • 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

    Code
    1. if pgrep "autossh" > /dev/null
    2. then
    3. :
    4. else
    5. 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"
    6. 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

    Code
    1. */15 * * * * /storage/autossh.sh

    6x Odroid C2 + CoreELEC 9.0.1; 6x RPi2 + LibreELEC 9.0.1; 3x Win7 Kodi 18.1 + vPeter's mariaDB plugin as Library DB

  • I am using following autossh.sh

    Code
    1. if pgrep "autossh" > /dev/null
    2. then
    3. :
    4. else
    5. 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"
    6. 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

    Code
    1. */15 * * * * /storage/autossh.sh

    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?