Tag: ssh

Git Submodules: It is possible to provide both https and ssh access to submodules?

Is it possible to provide both https and ssh access to a git submodule? Some people might prefer to use https and some might only be able to use ssh (e.g. because they are behind an ssh tunnel). Is it possible to provide both options of fetching submodules?

TeamCity Git VCS SSH connection with Custom Private Key throws JschException: Auth fail

I can’t seem to get TeamCity to read my Git (Gitolite) repository… I get an exception: List remote refs failed: com.jcraft.jsch.JSchException: Auth fail What I’ve tried: (I use PuTTY to export them to OpenSSH format) Use personal working(!!) private/public keys Generate private/public key with PuTTy for teamcity user Generate private/public key from Git Bash with […]

Git, SSH and ProxyCommand

I have a git server that is behind a firewall. I can access the firewall from my home, but not the git server. However, I can access the git server from the firewall (that is, I can SSH to the firewall and then SSH from the firewall to the git server). I am looking to […]

Cannot SSH using private key while building Docker image

I’m having trouble checking out a private git repository hosted on GitHub during a Docker image build. The error from SSH in verbose mode is: OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug1: Connecting to github.com [192.30.252.130] port 22. debug1: Connection established. debug1: […]

Save GIT Credentials using Git Credential Manager for Windows – Not working

I would like my SSH passwords to be remembered automatically when running git pull/push on windows. I have installed the Microsoft – Git Credential Manager for Windows The Git Credential Manager is not Working Environment git version 2.6.2.windows.1 loaded from here https://git-scm.com/download/win OpenSSH_3.8.1p1 https://github.com/Microsoft/Git-Credential-Manager-for-Windows

Jenkins Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)

On Jenkins which is configured on a CentOS server, I am trying to connect to a git repository on another server using username and password. Unfortunately I am getting following error: Failed to connect to repository : Command “/usr/bin/git -c core.askpass=true ls-remote -h ssh://root@[ip addres]:2020/opt/gitrepo/enpapp.git HEAD” returned status code 128: stdout: stderr: Permission denied, please […]

Git clone “fatal: I don't handle protocol 'ssh'”

I’ve created a repository in my local machine and asked a colleague to clone it, but it’s saying it can’t handle the SSH protocol. In my computer the repository is at /devel/scripts.git, and there’s an user called devel with access to that folder. Another guy could clone it normally, using git clone ssh://devel@192.168.0.7/devel/scripts.git. We are […]

How to set up SSH authenticated git commands in a TeamCity build step

I need to execute git commands in a TeamCity build step. These git commands need to use a SSH-based url for the git repo in order to authenticate as a priviliged user to the git server (because these git commands will actually modify the git repo, not just read it). I am aware of this […]

Git error: Unable to negotiate with XX.XX.XXX.XXX : no matching host key type found . their offer: ssh-dss

This question already has an answer here: Unable to negotiate with XX.XXX.XX.XX: no matching host key type found. Their offer: ssh-dss 5 answers

Can one single SSH key be used to push to different Git remotes?

Usually,I generate different SSH keys for pushing to multiple Git servers. Today,my colleague showed me that he uses the same id_rsa.pub file for pushing to both GitHub and our LAN GitLab server. Can one single SSH key be used to push to different Git remotes? What is the reason that we have to generate multiple […]

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