Forum › Forums › antiX-development › Development › git push to gitlab stops working – anybody else affected? › Reply To: git push to gitlab stops working – anybody else affected?
For others who run into the same trouble with gitlab now:
Success. What I did and described above actually works.
It is enough now to copy the content of the id_ed25519.pub file into your gitlab account. For this you have to login to gitlab.com in browser first, manage to get through their 2FA login procedure. Then in your account preferences you’ll find a section Access with a subsection SSH. Create a new key therein, and paste the content of your id_ed25519.pub file into the key field. Accept. That’s it.
Now, back in terminal window, enter for testing:
$ ssh -T git@gitlab.com
The authenticity of host 'gitlab.com (172.65.251.78)' can't be established.
ED25519 key fingerprint is SHA256:eUXGGm1YGsMAS7vkcx6JOJdOGHPem5gQp4taiCfCLB8.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
yes
Warning: Permanently added 'gitlab.com' (ED25519) to the list of known hosts.
Welcome to GitLab, @Robin-antiX!
(For additional safety you may want to check the fingerprint returned by the server against the public official gitlab fingerprints published on their site before permanently accepting by keying in yes literally.)
Now git push and git pull on command line and within your scripts will work again.
Additional consideration on Live antiX systems without persistence: After reboot you’ll have to redo these steps:
$ eval "$(ssh-agent -s)"
$ ssh-add /media/sdb2/gitlab/.ssh/id_ed25519
$ cat > ./.ssh/config << GIT
Host gitlab.com
IdentityFile /media/sdb2/gitlab/.ssh/id_ed25519
GIT
I guess it is a good idea to write the agent start command into the ~/.desktop-session/startup file before next remaster, or set a symlink from ~/.ssh pointing to a permanent space at my internal hard disk, to the live-usb-storage or to the spare data partition on the USB Live boot stick, whatever suits best.
Windows is like a submarine. Open a window and serious problems will start.