I’ve been using the username/password authentication for connecting to my github account but now want to use SSH keys. I’ve created the key but it looks like Wappler is still using the username/password. How can I remove that or effectively log out from github in Wappler?
You need to remove the remote repository starting with https://
and re-add the one that starts with git@
or similar (check your GitHub project page, you’ll find there)
If the remote repository URL starts with https://
, it’ll always use username-password authentication
Aah, thanks @Apple, that makes sense. I’ve removed the existing remote which did indeed start with https://
. I’ve tried to add the one beginning git@
(copied from my account at Github so I know it’s correct) but Wappler gives me this error:
I created the SSH keys in Wappler and pasted the public key into my Github account.
Unfortunately, this becomes a bug report
You may be able to ask ChatGPT or search on Google how to add your new Git remote through the terminal (or you can use a third-party GUI Git client)
Example of GUI Git client:
Thanks @Apple. I’m going to stick with the oauth authentication and have managed to sort my issue without the need to use SSH keys.