Hi
I have a repository I have not touched in a while and now I cannot push to gitlab. I use Sourcetree.
I have TFA on and a personal token. I also have ssh public keys uploaded, but I cannot find the right incantation to set things up. I understand there is something I must do with the personal token, but what exactly? The Gitlab instructions are a bit cryptic for me.
Please advise.
Thanks.
Hi Marco,
What URL do you have configured in SourceTree for the remote repo on Gotland.common-lisp.net?
The personal access token would be used as the password IFF you cloned the repo via HTTPS since you have 2FA enabled.
If you used SSH to clone, SourceTree needs to be able to access your private key that corresponds to the public ssh key you registered with gitlab.common-lisp.net.
— jb On Feb 3, 2022, 18:57 -0500, Marco Antoniotti marco.antoniotti@unimib.it, wrote:
Hi
I have a repository I have not touched in a while and now I cannot push to gitlab. I use Sourcetree.
I have TFA on and a personal token. I also have ssh public keys uploaded, but I cannot find the right incantation to set things up. I understand there is something I must do with the personal token, but what exactly? The Gitlab instructions are a bit cryptic for me.
Please advise.
Thanks.
-- Marco Antoniotti, Professor tel. +39 - 02 64 48 79 01 DISCo, Università Milano Bicocca U14 2043 http://dcb.disco.unimib.it Viale Sarca 336 I-20126 Milan (MI) ITALY
I have a git@common-list.net/mantoniotti/myrepo.git remote; cloned via git I believe.
But how do you tell Sourcetree and Gitlab to synch? Plus, I tried to generate a new key pair, but Gitlab complains that I am trying to upload a private key.
MA
On Fri, Feb 4, 2022 at 1:09 AM Jon Boone ipmonger@delamancha.org wrote:
Hi Marco,
What URL do you have configured in SourceTree for the remote repo on Gotland.common-lisp.net?
The personal access token would be used as the password IFF you cloned the repo via HTTPS since you have 2FA enabled.
If you used SSH to clone, SourceTree needs to be able to access your private key that corresponds to the public ssh key you registered with gitlab.common-lisp.net.
— jb On Feb 3, 2022, 18:57 -0500, Marco Antoniotti marco.antoniotti@unimib.it, wrote:
Hi
I have a repository I have not touched in a while and now I cannot push to gitlab. I use Sourcetree.
I have TFA on and a personal token. I also have ssh public keys uploaded, but I cannot find the right incantation to set things up. I understand there is something I must do with the personal token, but what exactly? The Gitlab instructions are a bit cryptic for me.
Please advise.
Thanks.
-- Marco Antoniotti, Professor tel. +39 - 02 64 48 79 01 DISCo, Università Milano Bicocca U14 2043 http://dcb.disco.unimib.it Viale Sarca 336 I-20126 Milan (MI) ITALY
I found this repo: git@common-lisp.net:mantoniotti/rho.git — so, you should be ok with the URL you provided.
Is this repo already in SourceTree? If so, try these steps to ensure the proper URL is being used: https://confluence.atlassian.com/sourcetreekb/changing-remote-repository-pat...
If not, try following these steps to add it: https://confluence.atlassian.com/sourcetreekb/add-an-existing-repository-int...
Where are you generating the new key pair? If in PuTTY under Windows, try this: https://confluence.atlassian.com/sourcetreekb/generate-and-load-ssh-keys-int...
— jb On Feb 3, 2022, 19:20 -0500, Marco Antoniotti marco.antoniotti@unimib.it, wrote:
I have a git@common-list.net/mantoniotti/myrepo.git remote; cloned via git I believe.
But how do you tell Sourcetree and Gitlab to synch? Plus, I tried to generate a new key pair, but Gitlab complains that I am trying to upload a private key.
MA
On Fri, Feb 4, 2022 at 1:09 AM Jon Boone ipmonger@delamancha.org wrote:
Hi Marco,
What URL do you have configured in SourceTree for the remote repo on Gotland.common-lisp.net?
The personal access token would be used as the password IFF you cloned the repo via HTTPS since you have 2FA enabled.
If you used SSH to clone, SourceTree needs to be able to access your private key that corresponds to the public ssh key you registered with gitlab.common-lisp.net.
— jb On Feb 3, 2022, 18:57 -0500, Marco Antoniotti marco.antoniotti@unimib.it, wrote:
Hi
I have a repository I have not touched in a while and now I cannot push to gitlab. I use Sourcetree.
I have TFA on and a personal token. I also have ssh public keys uploaded, but I cannot find the right incantation to set things up. I understand there is something I must do with the personal token, but what exactly? The Gitlab instructions are a bit cryptic for me.
Please advise.
Thanks.
-- Marco Antoniotti, Professor tel. +39 - 02 64 48 79 01 DISCo, Università Milano Bicocca U14 2043 http://dcb.disco.unimib.it Viale Sarca 336 I-20126 Milan (MI) ITALY
-- Marco Antoniotti, Professor tel. +39 - 02 64 48 79 01 DISCo, Università Milano Bicocca U14 2043 http://dcb.disco.unimib.it Viale Sarca 336 I-20126 Milan (MI) ITALY
Sorry, just double checked your provided URL — there needs to be a ‘:’ between ‘net’ and ‘mantoniotti’ instead of a ‘/‘.
— jb On Feb 3, 2022, 19:20 -0500, Marco Antoniotti marco.antoniotti@unimib.it, wrote:
I have a git@common-list.net/mantoniotti/myrepo.git remote; cloned via git I believe.
But how do you tell Sourcetree and Gitlab to synch? Plus, I tried to generate a new key pair, but Gitlab complains that I am trying to upload a private key.
MA
On Fri, Feb 4, 2022 at 1:09 AM Jon Boone ipmonger@delamancha.org wrote:
Hi Marco,
What URL do you have configured in SourceTree for the remote repo on Gotland.common-lisp.net?
The personal access token would be used as the password IFF you cloned the repo via HTTPS since you have 2FA enabled.
If you used SSH to clone, SourceTree needs to be able to access your private key that corresponds to the public ssh key you registered with gitlab.common-lisp.net.
— jb On Feb 3, 2022, 18:57 -0500, Marco Antoniotti marco.antoniotti@unimib.it, wrote:
Hi
I have a repository I have not touched in a while and now I cannot push to gitlab. I use Sourcetree.
I have TFA on and a personal token. I also have ssh public keys uploaded, but I cannot find the right incantation to set things up. I understand there is something I must do with the personal token, but what exactly? The Gitlab instructions are a bit cryptic for me.
Please advise.
Thanks.
-- Marco Antoniotti, Professor tel. +39 - 02 64 48 79 01 DISCo, Università Milano Bicocca U14 2043 http://dcb.disco.unimib.it Viale Sarca 336 I-20126 Milan (MI) ITALY
-- Marco Antoniotti, Professor tel. +39 - 02 64 48 79 01 DISCo, Università Milano Bicocca U14 2043 http://dcb.disco.unimib.it Viale Sarca 336 I-20126 Milan (MI) ITALY
Thanks, I'll check it out tonight.
On Fri, 4 Feb 2022 at 01:39, Jon Boone ipmonger@delamancha.org wrote:
Sorry, just double checked your provided URL — there needs to be a ‘:’ between ‘net’ and ‘mantoniotti’ instead of a ‘/‘.
— jb On Feb 3, 2022, 19:20 -0500, Marco Antoniotti marco.antoniotti@unimib.it, wrote:
I have a git@common-list.net/mantoniotti/myrepo.git remote; cloned via git I believe.
But how do you tell Sourcetree and Gitlab to synch? Plus, I tried to generate a new key pair, but Gitlab complains that I am trying to upload a private key.
MA
On Fri, Feb 4, 2022 at 1:09 AM Jon Boone ipmonger@delamancha.org wrote:
Hi Marco,
What URL do you have configured in SourceTree for the remote repo on Gotland.common-lisp.net?
The personal access token would be used as the password IFF you cloned the repo via HTTPS since you have 2FA enabled.
If you used SSH to clone, SourceTree needs to be able to access your private key that corresponds to the public ssh key you registered with gitlab.common-lisp.net.
— jb On Feb 3, 2022, 18:57 -0500, Marco Antoniotti marco.antoniotti@unimib.it, wrote:
Hi
I have a repository I have not touched in a while and now I cannot push to gitlab. I use Sourcetree.
I have TFA on and a personal token. I also have ssh public keys uploaded, but I cannot find the right incantation to set things up. I understand there is something I must do with the personal token, but what exactly? The Gitlab instructions are a bit cryptic for me.
Please advise.
Thanks.
-- Marco Antoniotti, Professor tel. +39 - 02 64 48 79 01 DISCo, Università Milano Bicocca U14 2043 http://dcb.disco.unimib.it Viale Sarca 336 https://www.google.com/maps/search/Viale+Sarca+336+%0D%0AI-20126+Milan?entry=gmail&source=g I-20126 Milan https://www.google.com/maps/search/Viale+Sarca+336+%0D%0AI-20126+Milan?entry=gmail&source=g (MI) ITALY
-- Marco Antoniotti, Professor tel. +39 - 02 64 48 79 01 DISCo, Università Milano Bicocca U14 2043 http://dcb.disco.unimib.it Viale Sarca 336 https://www.google.com/maps/search/Viale+Sarca+336+%0D%0AI-20126+Milan?entry=gmail&source=g I-20126 Milan https://www.google.com/maps/search/Viale+Sarca+336+%0D%0AI-20126+Milan?entry=gmail&source=g (MI) ITALY
--
Marco Antoniotti https://dcb.disco.unimib.it
Thanks.
So, the easy way out was to switch the protocol on the remote from 'git' to 'https' (it looks like I did fix this a long time ago for other repositories).
Thanks for the hints and the patience.
I still believe there is a glitch in the Gitlab instance SSH public keys upload. But is it not that important....
All the best
Marco
On Fri, Feb 4, 2022 at 7:27 AM Marco Antoniotti marco.antoniotti@unimib.it wrote:
Thanks, I'll check it out tonight.
On Fri, 4 Feb 2022 at 01:39, Jon Boone ipmonger@delamancha.org wrote:
Sorry, just double checked your provided URL — there needs to be a ‘:’ between ‘net’ and ‘mantoniotti’ instead of a ‘/‘.
— jb On Feb 3, 2022, 19:20 -0500, Marco Antoniotti marco.antoniotti@unimib.it, wrote:
I have a git@common-list.net/mantoniotti/myrepo.git remote; cloned via git I believe.
But how do you tell Sourcetree and Gitlab to synch? Plus, I tried to generate a new key pair, but Gitlab complains that I am trying to upload a private key.
MA
On Fri, Feb 4, 2022 at 1:09 AM Jon Boone ipmonger@delamancha.org wrote:
Hi Marco,
What URL do you have configured in SourceTree for the remote repo on Gotland.common-lisp.net?
The personal access token would be used as the password IFF you cloned the repo via HTTPS since you have 2FA enabled.
If you used SSH to clone, SourceTree needs to be able to access your private key that corresponds to the public ssh key you registered with gitlab.common-lisp.net.
— jb On Feb 3, 2022, 18:57 -0500, Marco Antoniotti < marco.antoniotti@unimib.it>, wrote:
Hi
I have a repository I have not touched in a while and now I cannot push to gitlab. I use Sourcetree.
I have TFA on and a personal token. I also have ssh public keys uploaded, but I cannot find the right incantation to set things up. I understand there is something I must do with the personal token, but what exactly? The Gitlab instructions are a bit cryptic for me.
Please advise.
Thanks.
-- Marco Antoniotti, Professor tel. +39 - 02 64 48 79 01 DISCo, Università Milano Bicocca U14 2043 http://dcb.disco.unimib.it Viale Sarca 336 https://www.google.com/maps/search/Viale+Sarca+336+%0D%0AI-20126+Milan?entry=gmail&source=g I-20126 Milan https://www.google.com/maps/search/Viale+Sarca+336+%0D%0AI-20126+Milan?entry=gmail&source=g (MI) ITALY
-- Marco Antoniotti, Professor tel. +39 - 02 64 48 79 01 DISCo, Università Milano Bicocca U14 2043 http://dcb.disco.unimib.it Viale Sarca 336 https://www.google.com/maps/search/Viale+Sarca+336+%0D%0AI-20126+Milan?entry=gmail&source=g I-20126 Milan https://www.google.com/maps/search/Viale+Sarca+336+%0D%0AI-20126+Milan?entry=gmail&source=g (MI) ITALY
--
Marco Antoniotti https://dcb.disco.unimib.it