[Rpi2] Autossh addon

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

    Code
    */15 * * * * /storage/autossh.sh
  • I am using following autossh.sh

    Code
    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

    Code
    */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?