[14:27:32] 10GitLab (CI & Job Runners), 10Patch-For-Review, 10Release-Engineering-Team (Priority Backlog 📥), 10User-brennen: Deploy buildkitd to trusted GitLab runners - https://phabricator.wikimedia.org/T308271 (10Jelto) >>! In T308271#8230189, @thcipriani wrote: > In the firewall configuration section of the [[ htt... [18:47:39] 10GitLab (CI & Job Runners), 10Patch-For-Review, 10Release-Engineering-Team (Priority Backlog 📥), 10User-brennen: Deploy buildkitd to trusted GitLab runners - https://phabricator.wikimedia.org/T308271 (10dduvall) >>! In T308271#8232572, @Jelto wrote: >>>! In T308271#8229736, @dduvall wrote: >> >> For some... [23:25:12] andrewbogott: I used git clone https://gitlab.wikimedia.org/andrew/toolviews [23:25:17] and did not specify a user [23:25:19] checking my config [23:25:27] mutante: ok, but since I want to push I'd like to get ssh working [23:25:31] I can also do https [23:25:36] I mean, https works for me [23:25:58] I'm confused by the suggested ssh command of 'git@gitlab.wikimedia.org:andrew/toolviews.git' because... git@ and not andrew@? [23:27:03] does 'git clone git@gitlab.wikimedia.org:andrew/toolviews.git' work for you? [23:27:22] yea, it does [23:27:49] huh. Well then this almost has to be some confusion with my key or username [23:28:12] let's see if I remember how to tell git to use a particular ssh key... [23:28:35] I think you are right about the user name.. still looking though [23:30:13] it works with GIT_SSH_COMMAND='ssh -i ~/.ssh/id_rsa' [23:30:20] ah! [23:30:31] so git is just being odd and selecting some other key to offer I guess [23:30:33] why doesn't it just try all my keys like any other ssh command would? [23:30:38] so in theory you can have 4 ssh keys [23:30:45] prod, cloud, gerrit, and ..gitlab [23:30:45] :p [23:30:57] there is a maximum of how many keys it tries [23:30:59] until it gives up [23:31:25] maybe if you unload them all from the agent, ssh-add -D [23:31:28] and then load only that one [23:31:37] and then try again without changing the GIT_SSH_COMMAND [23:31:54] I fixed it via .ssh/config [23:31:57] https://www.irccloud.com/pastebin/07M5kk8c/ [23:32:02] *shrug* good enough for me for now. [23:32:14] Thank you for your help! Good to know that it worked for others :) [23:32:17] ok, I was trying to git in logs but ok then :) [23:32:29] the git@ part should be normal [23:32:35] it's also in upstream docs [23:32:51] I think my .ssh/config specifies a particular key for @.wikimedia.org and it wasn't one of the ones I told gitlab about. [23:32:59] So probably I inflicted this on myself [23:33:05] maybe it was trying to login as andrew@ [23:33:05] now let's see if I can push! [23:33:08] ok [23:33:34] makes sense [23:34:06] https://www.mediawiki.org/wiki/GitLab/Workflows#Add_an_SSH_key ( [23:34:32] for $reasons it's on mediawiki.org [23:35:59] maybe you can also push via https with a password, that works in gerrit and phab [23:36:13] but if the keys work, good [23:37:36] ssh is preferred. But for those you want to use just http/https, you can specify credentials like this: [23:37:39] git remote add origin https://username:password@gitlab.example.com:group1/project1.git [23:39:33] I think this is all working now, I pushed and made merge requests and everything. [23:39:44] and also I'm thrilled that they're called 'merge requests' here and not 'pull requests'! [23:40:49] cool!:) [23:41:19] andrewbogott: let me know if you want a repo path that is not /andrew/ but something else while you still have ownership [23:41:27] in case you want to share things [23:41:45] usually we are doing "per team" and it can have multiple levels [23:41:52] and you an own "everything under X" [23:42:10] Ah, I see. I guess that's something we need to discuss as a team then... [23:42:13] could also be per project, the rules are not super strict so far [23:42:29] yea, could be /wmcs/toolsview [23:42:31] or similar [23:42:36] this fork at least should be quite short-lived so I'm not worried [23:42:43] ack, *nod* [23:44:24] /repos/team/subteam/project