Closed onyxPC closed 1 year ago
It is this? #17 There were some issues reported with custom port usage, but it was not resolved...
No. This is not about that.
Push does not work in gitlab.
$: git push gitlab
- not work.
Until I enter the container and $: ssh git@gitlab.mydomain.com_1 -p 10022
After the "fingerprint" everything works.
And $: git push gitlab
& gitlab-tools - "trigger sync".
System SSH does not perceive the "fingerprint" made by gitlab-tools. because of this does not work to git push gitlab
Can you test it? Like using gitlab.com as your giltab instance and try to mirror some OSS project... Yop it is #17 since https://github.com/Salamek/gitlab-tools/blob/ef716656f31177058ca44c066384f7aa3bf99c75/gitlab_tools/tools/fingerprint.py#L6 checks for hostkey on default port (22)
Ok i have added support for ports in https://github.com/Salamek/gitlab-tools/commit/ccf0fc8ffc209a5fc32535d085ec9e2d1e3af4d8 released as version 1.3
There is new configuration option you should set in your /etc/gitlab-tools/config.yml
in your case:
GITLAB_SSH: 'gitlab.mydomain.com:10022'
Thank you very match. You are so fast. But I wanted to offer you a slightly different way. More versatile.
ssh_url_to_repo just contains the address and port. Gitlab returns all the necessary information.
@onyxPC yes i know, gitlab returns ssh info for a project, but currently a gitlab project is created in async task after gitlab-tools mirror is created and fingerprint check is done "realtime" in UI when creating gitlab-tools mirror (so user can interact with it yes/no stuff)... so i need to know SSH info before i create a project. I have already checked if Gitlab API provides a way to fetch generic SSH info and it does not. So without any refactoring of background job/mirror creation, simple fix was to provide ssh info manually in config...
Thanks again. I'll try it on Monday.
Thank you very match. Everything is working.
In order not to start a separate question, I want to clarify: When you add the same repository from different users, he writes that such a repository is already taken. Why?
@onyxPC most likely incorrect check for repository duplicity under user (missing PullMirror.user == current_user in filter arguments) tracked in #42
Hello.
gitlab and gitlab-tools [1.2.9] will be deployed in my docker.
After adding to "Pull Mirrors" repository.
In "FingerPrints" I get two entries with the type of key SSH-ED25519:
After I click "Trigger Sync" in "Pull Mirrors" in the log I get:
I watched the file "repositories/1/pull/1/1/config"
If I make from the container:
ssh git@gitlab.mydomain.com_1 -p 10022
ECDSA
I introduced "yes" A record was made in .ssh/known_host_1 with key type ecdsa-sha2-nistp256
After this, the updates were earned from gitlab-tools. But I don't like to do this for every user.
I made an appointment with a file /etc/ssh/ssh_config
And repeated
ssh git@gitlab.mydomain.com_1 -p 10022
He asked for "fingerprint"
How to fix it? In order not to make
ssh git@gitlab.mydomain.com_X -p 10022
for each user. Thank you.