Skip to main content

All Questions

Tagged with
0 votes
1 answer
18k views

SSH connection to Gitlab is getting timeout

I've followed the official Gitlab docs (https://docs.gitlab.com/ee/ssh/) to make my keys using the comand: ssh-keygen -t ed25519 -C "[email protected]" But I'm getting timeout error as you ...
1 vote
0 answers
374 views

How to add SSH key to Gitlab-ce in Docker

I am running Gitlab-ce V16.5.1 in a docker container. I need to add a proper SSH key to my profile in order to use HTTPS/SSH and to enable my pipelines to complete without generating HTTP Basic Access ...
0 votes
1 answer
117 views

is it ok to gitlab-backup restore after ssh broken pipe?

I am trying to migrate gitlab-ce. Since my backup file is almost up to 200G it takes very long time to restore. I executed gitlab-backup restore and after some hours got ssh:broken pipe. As far as I ...
0 votes
1 answer
721 views

Jenkins is unable to connect to GitLab

I've got Jenkins and GitLab setup in my homelab running in docker containers. I was able to connect to GitLab from Jenkins, pull the desired repo, and perform the steps in the Jenkinsfile. I had a ...
0 votes
2 answers
493 views

Impossible to git push to a https GitLab repository: SSH passphrase wrongly asked each time

I have some SSH keys that, after entering my passphrases on a terminal, I use successfully to connect to some servers, in particular to push on git repositories. My organization is testing a self ...
0 votes
1 answer
248 views

Docker Error "Error creating machine: Error running provisioning: ssh command error, with Gitlab

Ever time I run the pipeline the same issue presist in the system logs > Gitlab-runner: {"driver":"amazonec2","level":"error","msg":"Error >...
0 votes
1 answer
815 views

Why I have to do `eval` and `ssh-add` every time I switch projects?

I do have in my ~/.ssh/config file two different GitLab accounts. Both are named on Host different and refers on Hostname to gitlab.com. Every time I switch between coding projects of the different ...
1 vote
1 answer
2k views

Why shows Git/Gitlab a wrong username on account verification in Terminal?

Environment: macOS Monterey MacBook Air M1 OpenSSH_8.6p1, LibreSSL 3.3.6 iTerm2 I try to get my SSH connection to work. After creating a new SSH key file for GitLab and adding it on gitlab.com I do: ...
3 votes
1 answer
14k views

ssh authentication failure with public/private keys

I'm setting up a Continuous Deployment pipeline on gitlab. Unfortunately, when trying to ssh from the pipeline to the target server, the authentication fails. I am asking the question here because I ...
2 votes
1 answer
6k views

GitLab asks for password on clone via ssh

I have set up GitLab via docker, as explained here: https://docs.gitlab.com/omnibus/docker/ I then created a user and uploaded my public ssh keys using the gitlab web interface. If I connect to gitlab ...
1 vote
0 answers
2k views

Access to private Gitlab over SSH fails on WSL2

I have been struggling with this for some time now and I'm running out of ideas. I am running Windows 11 with WSL2 and I am working on some code hosted in a private Gitlab repository. I can access the ...
0 votes
1 answer
973 views

Extremely Slow Image Pulls Docker Private Registry

I have two servers: 1.Server-1 (GitLab-CE & Private docker registry) 2.Server-2 (Staging) After build stage and push container to registry inside GitLab CI, next stage is deploy(CD) using Ansible. ...
1 vote
1 answer
1k views

Ssh keys on docker gitlab-ce

The announcement for GitLab 13.10 has a deprecation notice for using authorized_keys for ssh keys: The first mechanism (integration via authorized keys ) is vulnerable to both race conditions and out-...
0 votes
2 answers
2k views

Setting up ssh keys to connect to gitlab

*Note: Using windows 10 (I know, I know... that's what they gave me :/) Hi all, I'm new to using GitLab, but my company has their own GitLab server where I'm to house repos for my projects, push ...
1 vote
4 answers
12k views

Can't use SSH anymore on Gitlab runner, "Host key verification failed."

The server in question is a runner and builds projects with a system user gitlab-runner. That user is used to SSH into other servers to deploy code, etc.. Always worked fine until we added a new ...
0 votes
1 answer
23 views

How to be sure I'm using the right identity from my personal remote server?

The company I work with and I are both using Gitlab as remote repo. To make it simple from my personal laptop I want to be able to connect on 2 distinct repo. The company's one and mine. I'm using 2 ...
4 votes
2 answers
10k views

SSH over AnyDesk?

SSH traffic is blocked by my ISP's adult filter but AnyDesk (and maybe TeamViewer) are allowed. I'm on Windows and need to be able to work on some GitLab project over SSH, like e.g.: git clone git@...
1 vote
2 answers
3k views

Why does ssh clone from gitlab repo need password from WSL but not Linux-native PC?

From a Linux-native desktop, I am able to clone a project from our gitlab repo like this: git clone [email protected]:namespace/project.git No problem with the above: specifically, I'm not asked ...
0 votes
1 answer
109 views

Centos 8 symlink to users's `.ssh` folder

I'm following this guide to setup some kind of ssh proxy for gitlab. this is how ti doesn't work When I create symlink like in that blog post I'm not able to ssh into server. This is how symlink is ...
1 vote
1 answer
263 views

ssh from windows10 to a docker container ends with asking a password

I'm trying to test gitlab in a docker container installed on my windows 10 machine. But when I try to push my code, it ends with asking git's password When I test the connection with ssh -vT, here is ...
2 votes
1 answer
151 views

Multiple GitLab accounts SSH

I have multiple GitLab accounts and I am trying to set up SSH authentication. I have generated the key pairs and saved them in ~/.ssh/public/proj1[2]/id_rsa.pub and ~/.ssh/private/proj1[2]/id_rsa My ~/...
0 votes
1 answer
2k views

Cloning a private repository fails in GitLab CI

I'm using GitLab CI and I have two dependencies to clone from the same GitLab Server. One of my dependencies is in Composer and the other one in NPM. Both of the commands (composer install and npm ...
3 votes
1 answer
2k views

Why I cannot pull gitlab repo even though I created an SSH key?

I did everything required here and here to create and issue my SSH key to GitLab. I both have a win64 PC and I use the Ubuntu 16.04.4 cluster at my research lab. With the PC this works and I am able ...
0 votes
1 answer
533 views

How to generate SSH keys for gitlab.com hosted project?

I have a project hosted as private repository on gitlab.com. I want to use gitlab ci/cd to automatically deploy my project to remote server QA_SERVER when code is pushed to master branch. Below is the ...
-1 votes
1 answer
1k views

GitLab ssh User Access Rights

I'm running a version of GitLab that I installed last fall. Unfortunately I am unable to ascertain a version number. It is hosted on Ubuntu 1404 in a VM on a Win10 host. UPDATE: Looks to be rev 9.4....
1 vote
0 answers
200 views

Can't push to git on local server (public key) auth and then disconnect

I recently setup a local test server with Gitlab following this guide https://www.digitalocean.com/community/tutorials/how-to-set-up-gitlab-as-your-very-own-private-github-clone I am trying to make ...
0 votes
1 answer
2k views

Gitlab 7.10 install doesn't create proper ssh git user config?

I am setting up a Gitlab instance on my home VM lab and am baffled with the way SSH is configured in Gitlab so I would appreciate some insight into whether I am doing something wrong or is Gitlab ...
1 vote
1 answer
1k views

Git post-update hook not working properly

If I push to my remote origin repository the post-receive hook should push all to another remote repository on another machine. When I push to my origin the post-receive hook gets triggered but I ...
1 vote
0 answers
311 views

ssh_exchange_identification after few attempts

To help find diagnose a ssh issue with a gitlab server, I've written the following script #!/bin/bash while : ; do ssh -v [email protected] || exit 1 done After few successful iterations (...