Tag: ssh

Automated pulling from gitolite repo within docker container

FROM fedora:latest RUN yum install -y nginx git uwsgi RUN echo “nameserver” > /etc/resolv.conf RUN rm -rf /root/.ssh/ && mkdir -p /root/.ssh/ COPY id_rsa.pub /root/.ssh/id_rsa.pub COPY id_rsa /root/.ssh/id_rsa RUN cat /root/.ssh/id_rsa* && chmod 0400 /root/.ssh/id_rsa && echo “” > /root/.ssh/known_hosts RUN mkdir -p /srv/nginx/ RUN ssh -vvv -p 49022 git@example.com || true RUN git […]

SSH config with multiple keys for multiple gitlab user accounts

I run Gitlab CE on my server and use several different user accounts to group my repos by interest. The problem is with SSH. I found the following solution for github: https://gist.github.com/jexchan/2351996 In this guide one just uses different hosts with the same hostname in the config. Which is little effort to achieve what I’d […]

Clone bitbucket repo to local machine failed

I’m trying to clone my repository from bitbucket: git clone git@bitbucket.org:myname/mynamerepo.git and getting error: Cloning into ‘folder_name’… conq: repository access denied. deployment key is not associated with the requested repository. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. The problem happened after i’ve […]

Windows Git GUI over ssh?

I have a test webserver with git repotitory in it. Sometimes my coworkers need to edit the code in there and then commit and push it to production server without me being there. They can use Notepad++ over (s)ftp to edit the files, but they’re not used to console commands. Is there any git repository […]

GitLab + GitLab CI + Dependent SSH projects via NPM

Currently we’re using GitLab to manage our repos and GitLab CI as our CI. I have a project which includes another GitLab project as a dependency (via NPM). The project is internal and the URL in package.json starts with git+ssh://git@, which is what we use on our local machines. We have SSH keys set up. […]

How to checkout svn+ssh repository with subgit?

I want to checkout the glassfish svn with subgit 2.0.2. I added ssh-rsa blabla user@host in the user account settings of java.net. The key is stored locally under ~/.ssh/authorized_keys and id_rsa.user@host.pub. I set up subgit with subgit configure –svn-url svn+ssh://javauser@svn.java.net/glassfish~svn /path/to/folder and changed /path/to/folder/config to [core] repositoryformatversion = 0 filemode = true bare = true […]

Cannot push git repo to Dokku remote on Digital Ocean droplet?

Edit/update: instead of creating my git repo in the root, I created it in the dokku folder. Now when I push, I get this: bash-3.1$ ssh-add id_rsa; git push dokku master Identity added: id_rsa (id_rsa) Counting objects: 16, done. Delta compression using up to 4 threads. Compressing objects: 100% (14/14), done. Writing objects: 100% (16/16), […]

SSH stuck while git clone

I ran git clone on a repository on bitbucket but ssh is stuck and wouldn’t clone. Running ps to see the command, I rexecuted it in dubug mode and here is the output. >>ssh -v git@bitbucket.org git-upload-pack ‘username/repo.git’ OpenSSH_6.6.1, OpenSSL 1.0.1k-fips 8 Jan 2015 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 56: Applying options […]

Git clone over ssh option is not avaible for gerrit

I’ve recently migrated from HTTP auth to LDAP for gerrit auth. However, with the migration, some issues have cropped up. I am not able to clone the git repo over ssh. Also, from the UI, there’s no option available to clone repo over ssh or registered HTTP. Only anonymous HTTP option comes. I am thinking […]

Trying to do a git checkout from a PHP script

I made a small php webhook that executes git command to checkout the code from a remote repository in a detached worktree. I got this: error: cannot open .git/FETCH_HEAD: Permission denied I then changed the ownership of the .git directory to www-data to ensure that it gets written by the PHP script. I did this […]

Git Baby is a git and github fan, let's start git clone.