I upgraded from ssh-rsa key to ed25519 key and all working. I bumped the host to use that key as well
Is there any updated info on how to select and copy text from the web terminal? On a MacâŚ
Using Firefox here and the info I read earlier in the thread of trying modifiers (option or shift-option) donât seem to work - they prevent highlighting. If I select and release trackpad/mouse button, the highlight disappears without the ability to copy. If I select, then press shift-opt, then the highlight remains, but nothing gets copied with cmd-c or when right-clicking â copy.
Iâve not encountered this issue on another web terminal I use regularly, the one built into Unraid.
ok so fresh from my exuberance at getting this working after updating from ssh-rsa to ssh-ed25519âŚ
On the host I had deleted the old ssh-rsa key and then an ssh command threw in the towell because I had not updated the key in the command. Updated the ket to the new ssh-ed25519 key and it wonât work. Running it from the trerminal also would not work. Says the ssh-ed key is not accepted/not valid. Once I restored the ssh-rsa as an authorised key it works.
So to recap the ssh-web Terminal addon will only work (in PuTTY and Winscp if I use a ssh-ed25519 key
My Debian host will work with either an ssh-ed25519 or an ssh-rsa key
A shell command in home assistant that opens an ssh session to the host will only work with an ssh-rsa key.
As a final kicker I canât even add the ssh-rsa key in the addon config anymore. It immediately comes up with an error when I save.
Honestly you just couldnât make this shit up.
Iâm probably missing something here, but I can only find the regular SSH âTerminal & SSHâ on the Add-on store, and not this one.
Where am I failing?
Itâs in the community store
It least theyâre making it easy for you. Image trying to get this working if you donât know what you are doing?
It took a fair bit of dedication and googling to work it all out. The docs for the addon were useless.
Franck,
Thanks for making this add-on.
Unfortunately, I have to say that the UI to turn on the SSH server was particularly unintuitive to me. Yes, I read the add-on doc, and it wasnât of much help. I did get it to work finally, but it took me a long time.
Some suggestions :
- Maybe rename the âNetworkâ heading in the configuration to âSSH serverâ or âSSH daemonâ. Or something that makes more sense that just âNetworkâ
- Instead of the âShow disabled portsâ checkbox, have a checkbox called âEnable serverâ, with the default being off
- Simplify the port selection. This is what it shows currently :
a) Clicking one of the arrows on the right, next to â22/tcpâ changes the value of the port on the left side of the control. This is very confusing. I would have expected these arrows to change whatâs immediately next to them, ie. whatâs on the right . On a 32" wide screen, I initially didnât even notice that clicking the arrows on the right was changing the value of the field on the left, which was initially blank.
b) why show two port values, one on the left and one on the right ? Iâm assuming this is due to some sort of Docker internal. The field on the left is the external port. And the field on the right (hardcoded to 22/tcp) must be the the internal port. If there is any way at all, only the public port should be shown. Does the user of the add-on really care/need to know about the internal port ?
If you only show the external/public port, and move the arrows to the left side, the configuration will make a lot more sense. I think this would be fine for this add-on, which only exposes a single port.
Hi, itâs not clear to me how I set up the ssh auth key when I donât have access to the HA instance. This information is not written ANYWHERE in the doc. It seems like the doc is missing or assuming some critical information on how to use this tool. I know how to generate private/public ssh keys, but without first accessing to the server, I canât register my own key.
Its part of the config for the addon
I know that, but I still donât understand how I can set up ssh without even logging into the server first. The config file assumes you already have root access to the server.
No it doesnt. You dont need root access to install and configure the addon
Could you elaborate more? How am I supposed to enable ssh on the server if I canât even access the server?
This addon isnât meant to access the server. It only accesses the container of the addon and Home Assistant container. Are you using HA OS?
Yes, Iâm using HA OS. What I meant by the server is the container. What I understand is that the configuration file allows me to specify either the password or the ssh login into the container from the browser. But, I donât see how I can even setup password or the ssh login if I first donât have access to it. When I open the terminal, I get bad gateway, too.
Ssh login is setup via the addon configuration. What does the addon log say is happening? You dont need access to the container to set anything up for the addon
I donât think I see anything in the logs. The first step I did was to try to open the terminal which says âBad gatewayâ and I believe thatâs because I donât have access to it which makes sense to me. Is there something I need to do before this? I still feel like Iâm missing something crucial.
I also flashed my SD card and tried it again earlier today, but I still canât connect. 502 Bad Gateway. If you are saying it should connect without modifying any configs, then that doesnât sound like the case. Maybe you could try it on a fresh HA OS. Iâm using HA OS 8.0.
I checked again, but I confirmed there are no logs. Out of the box, Iâm pretty sure SSH & Web Terminal gives you Bad Gateway. There must be something I need to do to fix that, but Iâm not sure what it is and thatâs not written in the doc as far as I know.
you need a username and password in the ssh config for the addon. What is your configuration for the addon? Have you started the addon?? (Even when the addon is working there is a lot of info in the logs)
Yes, I started the add-on. Yes, Iâd imagine I need a username and password, but like I said several times, I donât have a way to set it up without having access to the container in the first place. I have not modified the configuration file because I donât know what to set it there.
Iâd like to ask again, but on a clean HA OS, after installing the add-on, what is the first step you would do to get access to the container? Is it supposed to work out of the box, or do I need to do something?
Oh well, I donât think Iâll be using this any more. It doesnât seem to work. Iâm trying this on a clean HA OS. Maybe it does, but something needs to be configured and no one seems to know how to get it to work. Thanks for the help anyways.