Tag: ssh

GitLab and SSH/HTTP connection

I’ve just set up an Ubuntu 64bit server dedicated to GitLab. I have successfully installed GitLab and everything seems to work except for the SSH connection using a Git client ( SmartGit ). I click on “Clone”, then I insert the ssh git URL: git@mydomain.test:root/firstproject.git When I click on “Next” it gives me this error: […]

MacOS Terminal: how to use a seccond ssh key?

I’m working on MacOS and want an SSH/Git login with a seccond ssh-key. I have two key pairs in ~/.ssh/ id_rsa id_rsa.pub id_rsa.gitlab id_rsa.gitlab.pub id_rsa and id_rsa.pub are the older key. This key is working fine. But where the second key is needed, i can’t login. It trys the first key and fails. Running this […]

Remote nodejs server deployment with forever

I’m trying to deploy a node js server on a remote machine by a post-commit hook, which would call a script on the remote machine that does the actual deployment. The problem I’m facing is if I run the remote script on the machine it works fine, but when I try to execute the same […]

Attaching network storage to a Docker container for Gitlab (ssh issue)

I’m in the process of installing Gitlab on my web server using Docker. Everything is working like a champ until I try to use my NAS as the storage folder. I was hoping that this was going to work: Mount the NFS share using /etc/fstab to a local folder: 192.168.1.103:/gitlab /home/user/gitlab_data nfs rsize=8192,wsize=8192,timeo=14,intr Run Docker […]

Git user permissions

I have a local repo and remote –bare repository set. Each of my hosting packages has its own user and group (with no ssh access), so I have so permissions problems. I have worked around this by setting up my remote repo as ssh://root@… and createing post-receive hook to apply chown correctuser:correctgroup -R public_html/ This […]

git ssh can't access to gitlab in a docker container

I installed gitlab in a container with docker, which already EXPOSE 22. When I ssh -vv git@host.com I can’t access with ssh publickey, only password method works. How can I get ssh access to an docker container? Thanks.

Git ssh could not resolve hostname

If I want to clone a Git repository via SSH, I get: ssh: Could not resolve hostname bitbucket.org: nodename nor servname provided, or not known fatal: Could not read from remote repository. I need to use a proxy to connect to the internet. (proxy:8080) In Git I can easily set the HTTP and HTTPS proxy […]

How do I get the Maven Release Plugin to work with Git over SSH?

I’m trying to use the Maven Release plugin with git over ssh. I run the command mvn release:prepare and get the following error: [INFO] Working directory: C:\projects\sample [INFO] Executing: cmd.exe /X /C “git push ssh://bill@hbox/sample master:master” [INFO] Working directory: C:\projects\sample [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.4:prepare (default-cli) on project sample: Unable to commit files [ERROR] […]

Problems migrating git repository server without access to original

I know this has been asked, but I couldn’t seem to implement any of the solutions and I’m a bit confused. I have two websites hosted on AWS EC2. They are written in node.js using express, css, jQuery, MongoDB, etc. The git repository server was the original developers computer. When I ssh into one of […]

Reauthenticate git (force creating new SSH key for a new user)

I have a personal and a corporate user at Bitbucket. I wish to use the latter, but the personal account’s SSH key might be stuck somewhere in the system, so all commits are getting pushed using my personal account to the corporate repository. How to force git bash to reauthenticate (ask again for my username […]

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