Comments (11)
Anything you wanna add?
from home-assistant-addons.
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.
Done in version 1.0.9 👍
from home-assistant-addons.
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.
I stopped using localhost.run service as technically its useless.
The temporary URL changes after random time interval.
from home-assistant-addons.
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.
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:
home-assistant-addons/autossh/run.sh
Lines 73 to 81 in aeb2187
from home-assistant-addons.
Hello, I am back.
How can I test the command by removing the -N argument?
from home-assistant-addons.
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.
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.
Sure, I will help you.
from home-assistant-addons.
Related Issues (13)
- Docker address of HA changed from 172.17.0.1 to 172.30.32.1 HOT 2
- repository.yaml HOT 3
- Home Assistant OS 9.5 changed IP subnet again HOT 15
- Can't install latest version
- Addon stops when connection/forwarding fails HOT 3
- AutoSSH installation fails HOT 2
- 400: Bad Request when trying to access HA from remote server (solved) HOT 2
- Error "s6-overlay-suexec: fatal: can only run as pid 1" HOT 3
- Can't connect anymore due to RSA drop in SSH 8.8 HOT 14
- Unable to connect to the server (anymore) HOT 6
- When addon fails to connect on startup, it retries a number of times, and then gives up and stops HOT 5
- Channel 0: connection failed: Operation timed out HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from home-assistant-addons.