Git Product home page Git Product logo

Comments (3)

dy1io avatar dy1io commented on September 7, 2024

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.

zapicoj avatar zapicoj commented on September 7, 2024

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.

zapicoj avatar zapicoj commented on September 7, 2024

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)

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.