Here we go again! 2FA vs Gitlab instructions.

Marco Antoniotti marco.antoniotti at
Sun Mar 27 14:19:59 UTC 2022


I am trying to import a repo in Gitlab.  I just created the repo using the
web interface (CL-PLOT).
This is what the instructions on the site say.

cd existing_repo
git remote rename origin old-origin
git remote add origin git at
push -u origin --all
git push -u origin --tags

Once I try git push I get the dreaded message.

$ git push -u origin --all
git at Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Why?  I.e., why doesn't git understand the 2FA I set up a long time ago?
Why I cannot get my SSH keys to work?  How can I change the remote spec in
order not to have to go through this every other month?

Thank you

All the best


Marco Antoniotti, Professor                           tel. +39 - 02 64 48
79 01
DISCo, Università Milano Bicocca U14 2043
Viale Sarca 336
I-20126 Milan (MI) ITALY
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the clo-devel mailing list