Backup GitHub

Hi, I am trying to backup my config directory on GitHub, I have been watching a lot of videos and I can’t get it to work.
I always get the same error and that is that the user and password support is disabled.
Could someone help me?

Your description is not specific enough for some detailed help on backups to github but, github requires access tokens for unattended uploads.

see:
Managing your personal access tokens - GitHub Docs

1 Like

Hello:
Sorry for the delay, but I wanted to document the process.
What I found on youtube is the following:
1- Create the repository in GitHub.
2- Open in HA the ssh terminal.
3- Open the config directory (cd config).
4- Add a .gitignore file and fill it with:
!.yaml
!.gitignore
!
.md
!.sh
!js !node-red/ !node-red/ !node-red/ !node-red/ !node-red
!node-red/
notebooks/
esphome/
custom_components/
zigbee2mqtt/log/
secrets.yaml
.ssh
.storage
.cloud
.google.token
home-assistant.log
.log*.txt
log*.txt
id_rsa*
5- Create a set of ssh keys:
ssh-keygen -t rsa -b 4096 -C “[email protected]
saving it in /root/config/.ssh/id_rsa
Leaving the passphrase blank
6- Run
git init
git add.
git commit -m "Initial Commit
git remote add origin [email protected]:Waterbrain/home-assistant.git
git config core.sshCommand “ssh -i \root_config.ssh_id_rsa -F \dev\null”.
7-Copy the id_rsa.pub
go to our GitHub account
and in profile->settings->SSH and GPG keys
add a new one and fill it with what we have copied from id_rsa.pub
8- Go back to the HA terminal and run git push -u origin master

And here is where it asks me for username and password and it crashes.
I read your link but that’s where I get confused.
I don’t know what to put in Expiration.


and in:

As well as in Organization permisions and so on.