Hello, I want to change the default SSH port for security reason.
With previous raspbian version, with putty, I edit the configuration file with the command :
But in Hass.io, nano is not install, and sudo not working.
So I want to install nano to edit files. Is that the good way ? How to do that ?
Thank for your help
How to install nano in HAOS 5.2?
I’m connected to Pi physically (monitor+keyboard).
I assume I jump out from ha cli to OS shell using login. Now what? apk comman doesn’t exist.
AFAIK the HAOS is not your regular (full) linux, so there’s no nano nor apt nor apk - it’s a locked down minimal appliance OS and thus you cannot really install things onto your HAOS.
For the SSH addon just list nano to apks in its config. Then you don’t have to remember to re-rerun apt update && apt install nano every time the addon updates or restarts. Or if you use the SSH addon from the community repo, add nano to packages, same thing.
As noted above you cannot install nano on the host for use in the root shell. There is no package manager available by design. You also really shouldn’t change things there but if you need to then use vi.
Ah, I wasn’t aware that you can include packages in the addon, that’s indeed usefull, I always need to add the tool with apk command on every restart…