ssh-agent

Getting ssh-agent to work with git run from windows command shell

拥有回忆 提交于 2019-11-27 16:56:03
I have msysgit installed, with OpenSSH. I am connecting to a gitosis repo. From the git bash, I have created a .profile file that runs ssh-agent (if not already running) each time git bash is opened, using this script SSH_ENV=$HOME/.ssh/environment function start_agent { echo "Initialising new SSH agent..." /usr/bin/ssh-agent | sed 's/^echo/#echo/' > ${SSH_ENV} echo succeeded chmod 600 ${SSH_ENV} . ${SSH_ENV} > /dev/null /usr/bin/ssh-add; } # Source SSH settings, if applicable if [ -f "${SSH_ENV}" ]; then . ${SSH_ENV} > /dev/null #ps ${SSH_AGENT_PID} doesn't work under cywgin ps -ef | grep $

Could not open a connection to your authentication agent

心不动则不痛 提交于 2019-11-27 05:13:50
I am running into this error of: $ git push heroku master Warning: Permanently added the RSA host key for IP address '50.19.85.132' to the list of known hosts. ! Your key with fingerprint b7:fd:15:25:02:8e:5f:06:4f:1c:af:f3:f0:c3:c2:65 is not authorized to access bitstarter. I tried to add the keys and I get this error below: $ ssh-add ~/.ssh/id_rsa.pub Could not open a connection to your authentication agent. Did You Start ssh-agent ? You might need to start ssh-agent before you run the ssh-add command: eval `ssh-agent -s` ssh-add Note that this will start the agent for msysgit Bash on

Hudson Git Plugin not working on windows

那年仲夏 提交于 2019-11-27 04:46:01
问题 I have msysgit installed with OpenSSH option. In Git bash, I can run ssh-agent, and it manages the passphrase for my ssh key. Is it possible for the Hudson Git plugin to use ssh-agent? Currently, it hangs when trying to clone, no doubt waiting for the passphrase to be entered. Thanks! 回答1: As mentioned in "Problem with Hudson + Git + Gitosis on windows", you need to make sure the Hudson job does set first a %HOME% environment variable. That value must refer to the directory where you can find

TortoiseGit with openssh key not authenticating using ssh-agent

本小妞迷上赌 提交于 2019-11-27 03:39:21
I'm setting up a git environment on Windows XP (msysGit 1.7.11, TortoiseGit 1.7.14) and trying to achieve following points : ssh connection on a port different than default 22 ssh authentification handled by ssh-agent So I create a ~/.ssh/config file : Host gitbox User gitolite Hostname XX.XX.XX.XX Port 154 PreferredAuthentications publickey IdentityFile "/c/Documents and Settings/kraymer/.ssh/id_rsa" When using the git bash CLI, everything works as intended. I'm struggling with TortoiseGit. I first installed TortoiseGit with Plink and using Pageant to load ssh private key. The automatic

Start ssh-agent on login

廉价感情. 提交于 2019-11-27 02:20:28
I have a site as a remote Git repo pulling from Bitbucket.com using an SSH alias. I can manually start the ssh-agent on my server but I have to do this every time I login via SSH. I manually start the ssh-agent: eval ssh-agent $SHELL Then I add the agent: ssh-add ~/.ssh/bitbucket_id Then it shows up when I do: ssh-add -l And I'm good to go. Is there any way to automate this process so I don't have to do it every time I login? The server is running RedHat 6.2 (Santiago). Please go through this article. You may find this very useful: http://mah.everybody.org/docs/ssh Just in case the above link

Getting ssh-agent to work with git run from windows command shell

泄露秘密 提交于 2019-11-26 22:30:23
问题 I have msysgit installed, with OpenSSH. I am connecting to a gitosis repo. From the git bash, I have created a .profile file that runs ssh-agent (if not already running) each time git bash is opened, using this script SSH_ENV=$HOME/.ssh/environment function start_agent { echo "Initialising new SSH agent..." /usr/bin/ssh-agent | sed 's/^echo/#echo/' > ${SSH_ENV} echo succeeded chmod 600 ${SSH_ENV} . ${SSH_ENV} > /dev/null /usr/bin/ssh-add; } # Source SSH settings, if applicable if [ -f "${SSH

How to permanently add a private key with ssh-add on Ubuntu? [closed]

China☆狼群 提交于 2019-11-26 19:10:43
I have a private key protected with a password to access a server via SSH. I have 2 linux (ubuntu 10.04) machines and the behavior of ssh-add command is different in both of them. In one machine, once I use "ssh-add .ssh/identity" and entered my password, the key was added permanently, i.e., every time I shutdown the computer and login again, the key is already added. In the other one, I have to add the key every time I login. As far as I remember, I did the same thing on both. The only difference is that the key was created on the one that is added permanently. Does anyone know how to add it

SSH Agent Forwarding with Ansible

杀马特。学长 韩版系。学妹 提交于 2019-11-26 18:52:23
问题 I’m using Ansible 1.5.3 and Git with ssh agent forwarding (https://help.github.com/articles/using-ssh-agent-forwarding). I can log into the server that I am managing with Ansible and test that my connection to git is correctly configured: ubuntu@test:~$ ssh -T git@github.com Hi gituser! You've successfully authenticated, but GitHub does not provide shell access. I can also clone and update one of my repos using this account so my git configuration looks good and uses ssh forwarding when I log

Start ssh-agent on login

瘦欲@ 提交于 2019-11-26 17:29:17
问题 I have a site as a remote Git repo pulling from Bitbucket.com using an SSH alias. I can manually start the ssh-agent on my server but I have to do this every time I login via SSH. I manually start the ssh-agent: eval ssh-agent $SHELL Then I add the agent: ssh-add ~/.ssh/bitbucket_id Then it shows up when I do: ssh-add -l And I'm good to go. Is there any way to automate this process so I don't have to do it every time I login? The server is running RedHat 6.2 (Santiago). 回答1: Please go through

TortoiseGit with openssh key not authenticating using ssh-agent

允我心安 提交于 2019-11-26 12:39:29
问题 I\'m setting up a git environment on Windows XP (msysGit 1.7.11, TortoiseGit 1.7.14) and trying to achieve following points : ssh connection on a port different than default 22 ssh authentification handled by ssh-agent So I create a ~/.ssh/config file : Host gitbox User gitolite Hostname XX.XX.XX.XX Port 154 PreferredAuthentications publickey IdentityFile \"/c/Documents and Settings/kraymer/.ssh/id_rsa\" When using the git bash CLI, everything works as intended. I\'m struggling with