Giter Site home page Giter Site logo

Comments (11)

ThomDietrich avatar ThomDietrich commented on June 5, 2024 1

Anything you wanna add?

from home-assistant-addons.

ThomDietrich avatar ThomDietrich commented on June 5, 2024 1

You don't have to test this from the Home Assistant host. Just try on your local machine. Alternatively there is a Terminal addon for home assistant, you could try with that. The goal is to play around with autossh

from home-assistant-addons.

ThomDietrich avatar ThomDietrich commented on June 5, 2024 1

Done in version 1.0.9 👍

from home-assistant-addons.

ThomDietrich avatar ThomDietrich commented on June 5, 2024 1

Ah one more thing: It would be cool if you drafted a small passage for the README how this can be used with localhost.run. Please be subjective and mention potential risks or limitations...

from home-assistant-addons.

iosoft avatar iosoft commented on June 5, 2024 1

I stopped using localhost.run service as technically its useless.
The temporary URL changes after random time interval.

from home-assistant-addons.

ThomDietrich avatar ThomDietrich commented on June 5, 2024

Hey, cool service.

I get your point but how do we best solve this? Where would you normally expect this subdomain name and do you have any clue how to read it?

from home-assistant-addons.

ThomDietrich avatar ThomDietrich commented on June 5, 2024

So here is the thing. We use autossh to connect the tunnel. Any of the parameters probably hides the line you are missing. My suggestion is you install autossh, copy the command from the script, then try around to understand which command line argument is the culprit. Happy to help fixing the issue if you figure out what it is ;)

Here is the command:

COMMAND="/usr/bin/autossh "\
" -M 0 -N "\
"-o ServerAliveInterval=30 "\
"-o ServerAliveCountMax=3 "\
"-o StrictHostKeyChecking=no "\
"-o ExitOnForwardFailure=yes "\
"-p ${SSH_PORT} -t -t "\
"-i ${KEY_PATH}/autossh_rsa_key "\
"${USERNAME}@${HOSTNAME}"

from home-assistant-addons.

iosoft avatar iosoft commented on June 5, 2024

Hello, I am back.

How can I test the command by removing the -N argument?

from home-assistant-addons.

iosoft avatar iosoft commented on June 5, 2024

Hi, I was just going to inform you that -
Connection successful if -N argument is removed!

Executing command: /usr/bin/autossh -M 0 -o ServerAliveInterval=30 -o ServerAliveCountMax=3 -o StrictHostKeyChecking=no -o ExitOnForwardFailure=yes -p 22 -t -t -i /data/ssh_keys/autossh_rsa_key [email protected] -R 80:192.168.79.79:8123 -v

Log:

Welcome to localhost.run!
Follow your favourite reverse tunnel at [https://twitter.com/localhost_run].
**You need a SSH key to access this service.**
If you get a permission denied follow Gitlab's most excellent howto:
https://docs.gitlab.com/ee/ssh/
*Only rsa and ed25519 keys are supported*
To set up and manage custom domains go to https://admin.localhost.run/
More details on custom domains (and how to enable subdomains of your custom
domain) at https://localhost.run/docs/custom-domains
To explore using localhost.run visit the documentation site:
https://localhost.run/docs/
===============================================================================
** your connection id is 3f0645a6-653f-495a-8b64-XXXXXXXXXXXXX, please mention it if you send me a message about an issue. **
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /data/ssh_keys/autossh_rsa_key ED25519 SHA256:XXXXXXXXXXXXXXXXXX explicit
debug1: Server accepts key: /data/ssh_keys/autossh_rsa_key ED25519 SHA256:XXXXXXXXXXXXXXXXXXX explicit
Authenticated to localhost.run ([35.171.254.69]:22) using "publickey".
debug1: Remote connections from LOCALHOST:80 forwarded to local address 192.168.9.9:8123
debug1: ssh_init_forwarding: expecting replies for 1 forwards
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: pledge: filesystem
debug1: remote forward success for: listen 80, connect 192.168.9.9:8123
debug1: forwarding_success: all expected forwarding replies received
debug1: ssh_tty_make_modes: no fd or tio
e3606f60fceXXX.lhrtunnel.link tunneled with tls termination, https://e3606f60fceXXX.lhrtunnel.link

I would like to request you to update your awesome and important plugin and move the -N argument as a toggle thing in configuration page or in 'other_ssh_options' text field.

P.S. In you documentation/manual, pls do mention that the 'remote_forwarding' should be like this - 80:HomeAssistantIP:8123

Thanks.

from home-assistant-addons.

ThomDietrich avatar ThomDietrich commented on June 5, 2024

P.S. In you documentation/manual, pls do mention that the 'remote_forwarding' should be like this - 80:HomeAssistantIP:8123

Not sure about your suggestion, why is this not correct? https://github.com/ThomDietrich/home-assistant-addons/blob/master/autossh/DOCS.md#option-remote_forwarding=

from home-assistant-addons.

iosoft avatar iosoft commented on June 5, 2024

Sure, I will help you.

from home-assistant-addons.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.