@adamoutler I adde your repository to the Addon Store (HassOS) but this add on doesnt show up. Did I miss something?
Gotta wait for sync. It takes a bit. You can refresh the store at top right.
It shows your other add-ons though?
It shows all other add ons from Adam (I posted a screenshot) but not the SSH one.
What platform are you using?
Posting here as Adam asked me to, on GitHub.
Thank you for the port 22222 configurator. I finally got it working by following this thread.
I installed the Add-on, checked the logs and the ssh keys seemed to be installed correctly.
I then did
ssh [email protected] -p22222
and got in.
I am, however, unable to write anything.
I get an error saying “Read-only file system”.
No. Post elsewhere. This is unrelated and deals with sys config.
Where elsewhere? I think it is related to Hass. It is not a file system or ‘sys config’ problem. Everything else works fine, like the file editor addon with config/automation files.
Ive followed the instructions and I was able to log-in.
However I couldn’t use apt-get or install it for that matter (Wanted to create a LetsEncrypt certificarte and had to do apt-get install certbot. Which isn’t possible.)
Now that I found there is an integration for this, I want to completely remove this add-on / configurator and all of it’s configuration.
When I do netstat -a, I can still see the server listening to port 22222.
How can I do this?
The addon does not create the ssh server, it merely configures it.
How do I stop Home assistant from listening on port 22222, it is also listening on port 22.
Ssh on port 22222. Delete the key. Log out. Reboot.
BTW there is no apt in haos because it is NOT debian or some derivative.
There is an addon for lets encrypt.
Also does it really matter is ssh is running?
rm ~/.ssh/authorized_keys; reboot
hi! i’ve try this inside HA ssh (22 port)
Steps
login as: root
[email protected]'s password:
| | | | /\ (_) | | | |
| |__| | ___ _ __ ___ ___ / \ ___ ___ _ ___| |_ __ _ _ __ | |_
| __ |/ _ \| '_ \ _ \ / _ \ / /\ \ / __/ __| / __| __/ _\ | '_ \| __|
| | | | (_) | | | | | | __/ / ____ \\__ \__ \ \__ \ || (_| | | | | |_
|_| |_|\___/|_| |_| |_|\___| /_/ \_\___/___/_|___/\__\__,_|_| |_|\__|
Welcome to the Home Assistant command line.
System information
IPv4 addresses for enp1s0: 192.168.0.170/24
IPv6 addresses for enp1s0: 2a00:1370:8198:77e4:a3a1:fb7e:3305:a132/64, fe80::e dbf:b2b7:efcf:9621/64
IPv4 addresses for wlp2s0:
OS Version: Home Assistant OS 11.1
Home Assistant Core: 2023.11.2
Home Assistant URL: http://homeassistant.local:8123
Observer URL: http://homeassistant.local:4357
[core-ssh ~]$ ssh 127.0.0.1 -p22222
ssh: connect to host 127.0.0.1 port 22222: Connection refused
[core-ssh ~]$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa
Your public key has been saved in /root/.ssh/id_rsa.pub
The key fingerprint is:
SHA256:bXlV9oOq+5ThTurQfNENUDXWCNZVCQC+UsKrolZ5V8M root@core-ssh
The key's randomart image is:
+---[RSA 3072]----+
| ..o==o*O|
| . . .. =++|
| o.o o...|
| +E..o.o .|
| . oS.=+.. . |
| o ...+.o.+ |
| ...... + * |
| .. . . B |
|.. .+.o |
+----[SHA256]-----+
[core-ssh ~]$ cat ~/.ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC5Y2w1H6uv6uwGkaTfFEQw/bn0fcYbCyiJycxQgfA8 sKpZ9hFi5oucsxlGeR3mzcRgasitucZs96ciSUKfBcjhXKPBj7PHb/zKGFwtvhXNXqB6SxPE1uhhgaCp uP5u+q76Drq7yuFA2NYtvGXLJTb4Id+iRgL1vfReCmgrO8MFzuycAo51+isFByHgLpCWhIiLq+PHboDw kxdgizCNcAhqbb6Wvk5LErnTXYJH5n/x/bsxcwvOkfrl2b+AWMuvlCTxzfUYOFDxwdB7Fn+wWVWG8hV/ L8GAQ/V3DA9IvbUT2/xEX1fg1pwW0JVz3MxGEq2l6ARzq0uu3IwbEUlh3idZ0zHVNFZ4ENdcnAQmQpcb 0Dh1hsCoC9xINALigac/nya8vlNYBgybCoZhvUzzgyPoq+LpolKbLHYEw1x2nR+hocZYN8hBisM5zCVo Q9zwnMJbEHgLtIWbOr7G198oihRBDq7uPzXNJo+eL3/hKd/c+2U6hjPQNp/9WVZ1v4pIMJk= root@co re-ssh
[core-ssh ~]$
login as: root
[email protected]'s password:
| | | | /\ (_) | | | |
| |__| | ___ _ __ ___ ___ / \ ___ ___ _ ___| |_ __ _ _ __ | |_
| __ |/ _ \| '_ \ _ \ / _ \ / /\ \ / __/ __| / __| __/ _\ | '_ \| __|
| | | | (_) | | | | | | __/ / ____ \\__ \__ \ \__ \ || (_| | | | | |_
|_| |_|\___/|_| |_| |_|\___| /_/ \_\___/___/_|___/\__\__,_|_| |_|\__|
Welcome to the Home Assistant command line.
System information
IPv4 addresses for enp1s0: 192.168.0.170/24
IPv6 addresses for enp1s0: 2a00:1370:8198:77e4:a3a1:fb7e:3305:a132/64, fe80::e dbf:b2b7:efcf:9621/64
IPv4 addresses for wlp2s0:
OS Version: Home Assistant OS 11.1
Home Assistant Core: 2023.11.2
Home Assistant URL: http://homeassistant.local:8123
Observer URL: http://homeassistant.local:4357
[core-ssh ~]$ ssh 127.0.0.1 -p22222
ssh: connect to host 127.0.0.1 port 22222: Connection refused
[core-ssh ~]$ ssh 192.168.0.170 -p22222
The authenticity of host '[192.168.0.170]:22222 ([192.168.0.170]:22222)' can't be established.
ED25519 key fingerprint is SHA256:9C0rbCXMBiCRS90JJoh4ud3BHe9V+Dk8gV2ditRJFCo.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
Host key verification failed.
[core-ssh ~]$ ssh [email protected] -p 22222
The authenticity of host '[homeassistant.local]:22222 ([172.30.32.1]:22222)' can't be established.
ED25519 key fingerprint is SHA256:9C0rbCXMBiCRS90JJoh4ud3BHe9V+Dk8gV2ditRJFCo.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
Host key verification failed.```
Install log
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[skip] /dev/vda1 does not exist.
[skip] Key already exists in /dev/sda1
[skip] /dev/sdb1 does not exist.
[skip] /dev/mmcblk0p1 does not exist.
[skip] /dev/mmcblk1p1 does not exist.
[skip] /dev/nvme0n1p1 does not exist.
[Done] Configurator complete. Perform a hard power-off now. This configurator only works once and is no longer needed.
Do you have a question?
I added the repo:
https://github.com/adamoutler/HassOSConfigurator
but the add-ons don’t show up?
Rebooting the entire machine has no effect on this.
Running HA OS on a Pi 4B
Core 2023.11.1
Supervisor 2023.11.0
Operating System 11.1
Frontend 20231030.1
Ideas?
no connection
What answer did you give the question “do you want to continue”?
Try making a new key. Not all keys work