Details
-
Suggestion
-
Resolution: Fixed
-
P4: Low
-
None
-
None
-
None
-
Ubuntu 22 X86_64
-
5ff4c5c41 (master)
Description
I use qtrepotools After my steps I see "Welcome to Gerrit Code Review". Looks like my ssh connection works ok. After I want
qtdoc$ git gpush --branch dev .. Notice: HEAD has no upstream remote; defaulting to origin. ssh: connect to host codereview.qt-project.org port 22: Connection timed out
There is GIT_SSH_COMMAND variable. Let's test it.
echo $GIT_SSH_COMMAND ssh -v -i /home/myrealpathhidden -p 29418
Looks like git gpush don't use GIT_SSH_COMMAND.
But git gpush use /.ssh/config file to parse. For example this is my /.ssh/config
Host codereview.qt-project.org
Port 29418
# To avoid no mutual signature algorithm errors
# Use your Gerrit username, not email or your username on your own machine.
# You can view this from Settings in gerrit when logged in.
User myrealnamehidden
PreferredAuthentications publickey
IdentityFile /home/myrealpathhidden
qtrepotools wants user to configure operating system file. Because of this it is hard to contribute to Qt.
1) I suggest allow git gpush to use GIT_SSH_COMMAND
2) I suggest allow pass User name into git gpush via console.
Attachments
For Gerrit Dashboard: QTQAINFRA-5398 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
458386,2 | gpush: heed git's ssh config | master | qt/qtrepotools | Status: MERGED | +2 | 0 |