Can't access configuration.yaml

Hi, I’m new to home assistant and is running it on a Raspberry pi 3 b+ . After setting up all my devices and automation, today I was trying to configure remote access via DuckDNS. But myself being an TOTAL idiot added

ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem

to my configuration.yaml file without even installing DuckDNS to, now I cannot access the home assistant UI at all ! I also did not install samba nor the ssh addon. :frowning: HA is still up and running and I’m still able to control my devices via Homekit. But now I can’t edit or configure anything.

Is there any other way not through the Hass configurator to edit my configuration.yaml file so I can delete the commands.
When I try to plug in the SD card to a Mac or a PC the following shows up

The disk you inserted was not readable by this computer.

Do I really have to restart from scratch, it would totally suck, after I’ve spent hours and hours with my automations and customizing the UI… I’m desperate and any help/tips would be hugely appreciated

PLEASE HELP! :disappointed_relieved:

you’ll need to enable debugging. see here

1 Like

Basically you’ll need to format an USB drive, name it CONFIG, then copy your ssh public key,, to a file called authorized_keys, place that file in the USB root directory (not inside any folders). When you reboot the pi, it will import the file from the USB and place it in the right place so you can ssh to it on port 22222.

1 Like

Thanks a lot! will try it tomorrow. :smile:

Hi, I’m now in the CLI :grinning: , this might sound stupid, but I can’t figure out how to edit the configuration.yaml file. Can you please help :sweat_smile: Thank you!

There are many ways you can edit your configuration.yaml file. I usually just ssh into my RPi and edit it using vim, nano is an easy editor you can use for simple editing.
I don’t know what your primary Operating System is, and I haven’t really used any other OS but Linux in a decade, so I might not be of much help if that’s not what you are using.
In Linux if I want to use an editor with a graphical interface, on my main machine I mount the [email protected]/~/.homeassistant directory through sftp so I can edit those files as if they were in my local computer. A lot of people do the same in Windows using Samba for example.
I believe there are posts here where that question has already been answered. I recommend you do a search or post a new question if you can’t find what you need.


1 Like

Thanks for the help, I’ve decided to start over at last, as I was already planning to upgrade to a bigger SD card, this time I’m going to make sure I have backup/samba… setup. Thanks for everything!