Comments (3)
I think I understand what you're trying to do.. You essentially want to supply the add-on with the private key to use for the connection, is that correct?
If that is the case, the add-on does not support supplying the key. In theory that isn't a very difficult thing to add, and if I have some time I may look into finding a way to do that, or feel free to submit a PR if you have a solution you'd like to suggest. My original thought on that and why I originally didn't go that way was that I wanted to ensure I was always using a unique key for best security practice, so it was easier for me to just generate the key and display the public key.
If you want to use it that way just head over to the log and copy the public key (and hash if you need it) into your server's authorized_keys
and it should connect just like it does from your CLI.
from hassio-addons.
Thank you for your response and time.
Yes, your understanding is correct. The reason is because the server, that I am using to establish the ssh connection, does not support rsa keys for ssh connections, it accepts ed25519, ECDSA, EdDSA and others.
This is why I wanted to configured the SSH Tunnel with my own ed25519 private key file.
I understand and agree on your point about best security practice. May be a good option (keeping your concept), would be to select the key type in the config file. But in that case the SSH Tunnel should have different key generators (depending on the type) and that sounds a bit complex.
The obvious option would be allow the user to provide the private key file in the configuration file. But in that case we dont respect your idea of using a unique key for best security practice.
In the meanwhile I will try to find another server allowing the use of RSA keys for ssh connections in order to use your excelent add-ons.
Appreciate much your time
kind regards
Jose Zapico
from hassio-addons.
Hi,
After talking with the system administrator, he agreed to open the option of RSA key for ssh connections.
Now the SSH Tunnel addon can connect with the server but it does not make the port forwarding. I receive those lines in the addon register, after connection:
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
I will continue trying to find out why those lines appear in the log.
Thank you
Jose Zapico
from hassio-addons.
Related Issues (10)
- Error on addon not working any more HOT 5
- Getting error after update HOT 5
- Auth required HOT 3
- Addons can't create the tunnel after startup HOT 1
- 400 Bad Request HOT 2
- Hass.io ngrok Client HOT 5
- How to run in docker? HOT 3
- Only working on lan HOT 1
- s6-overlay-suexec: fatal: can only run as pid 1 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 hassio-addons.