Tag: ssh

Git Running SSH Under Different Port

Our servers at work don’t use Port 22 for SSH – they use a 4 digit Port. Now when I try to use commands such as git fetch, git pull etc. It cannot connect because it’s trying to connect using our 4 digit Port [user@server]$ sudo git fetch –verbose ssh: connect to host bitbucket.org port […]

How to associate GIT with SSH protocol (keys)

I am trying to create a cloud config server using cloud foundry and below JSON : { “count”: 1, “git”: { “privateKey”: “****”, “cloneOnStart”: “false”, “hostKey”: “****”, “label”: “master”, “hostKeyAlgorithm”: “ssh-rsa”, “uri”: “ssh://git@bitbucketsc-ssh.emp.net:7999/proj/repo.git” } } I have generated a private ssh key and a public ssh key. My question is how do I tell my […]

Access private git repos via npm install – Docker Container

I am in the process of setting up a docker container that will pull private repos from GitHub as part of the process. At the moment I am using an Access Token that i pass from the command line (will change once build gets triggered via Jenkins). docker build -t my-container –build-arg GITHUB_API_TOKEN=123456 . # […]

Error: Repository not found. fatal: Could not read from remote repository

I am using SSH to try to push a new repo to GitHub. The steps I took: git init git add . git commit -m “first commit” git remote add origin git@github.com:******/********** git push -u origin master At this point, I got: The authenticity of host ‘github.com (192.30.255.113)’ can’t be established. and fatal: Could not […]

Missing tree and 'duplicate request' errors when pushing to gerrit

When I try to push to gerrit, I get this error: Counting objects: 1276, done. Delta compression using up to 8 threads. Compressing objects: 100% (918/918), done. Writing objects: 100% (1276/1276), 235.23 KiB | 0 bytes/s, done. Total 1276 (delta 960), reused 381 (delta 262) remote: Resolving deltas: 100% (960/960) remote: Counting objects: 14637, done […]

SSH push to github fails, but can authenticate

For some reason I seem to be unable to push to github using Powershell, but using CygWin seem to be running smoothly. I’m working on setting up automatic pushes to a repository using Task Scheduler, and it simply seems more efficient using Powershell for that. What bothers me is that I’m perfectly able to ssh […]

How to solve “shell request failed on channel 0” on RHEL container?

I’m trying to connect to a Stash repo from a Jenkins container (RHEL7). The connection appears to authenticate successfully however fails shortly afterward. Connection established. debug1: identity file /var/jenkins_home/.ssh/id_rsa type 1 debug1: key_load_public: No such file or directory debug1: identity file /var/jenkins_home/.ssh/id_rsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /var/jenkins_home/.ssh/id_dsa […]

Multiple git account doesn't work with Xcode

Due to my customer’s privacy requirement, I’ve got create multiple account to access different git. With some helps, I’ve created the file config and multiple ssh keys in dir ~/.ssh. Using terminal, I’ve been able to perform all kind of action to the git. However, if I use XCode to perform those action, it stated […]

Access different Gitlab servers from one machine

Accessing company’s gitlab from home -> no problem. Now try to access 2nd gitlab server at home (on a Raspberry Pi) -> being ask for password and access denied. Server seems to run just fine, can access web interface, configured it, added users, groups and a project. I made a new SSH key (additional to […]

Setting up a git deployment process to ec2

I followed this tutorial: on setting up a git deployment process to an ec2 instance. I carefully went through all the steps of ssh‘ing into the ec2 machine with a ~/.ssh/ host in the config file. Creating the bare git repo. Adding the post-receive hook script and so on. Locally, I make some changes, commit. […]

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