ssh-agent

Remember git passphrase in WSL

本秂侑毒 提交于 2019-12-02 00:35:18
I run Windows 10 with WSL. I have the desired behaviour on one computer, but cannot replicate elsewhere. Here's what I'm after: First time I run a remote git command using my ssh key, git prompts me for the passphrase Subsequent times no prompt, including in new terminal windows (I use ConEmu) When all console windows are closed, back to #1 Things I've tried: using eval $(ssh-agent) , followed by ssh-add ; it will remember the passphrase, but if I put it in my ~/.bash_profile then it prompts me for every new console window, and I open a lot - many of which I'm not using git in. setting git

Using cygwin ssh-agent is running but git is still prompting for passphrase

 ̄綄美尐妖づ 提交于 2019-11-30 23:44:11
I'm using cygwin as my terminal on Windows 7. I have found several suggestions to run ssh-agent in cygwin so I don't have to enter my password every time I run a git fetch/pull/push. I added the following to my .bash_profile and restarted my cygwin session: SSH_ENV="$HOME/.ssh/environment" function start_agent { echo "Initialising new SSH agent..." /usr/bin/ssh-agent -s | 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

Using cygwin ssh-agent is running but git is still prompting for passphrase

偶尔善良 提交于 2019-11-30 18:27:49
问题 I'm using cygwin as my terminal on Windows 7. I have found several suggestions to run ssh-agent in cygwin so I don't have to enter my password every time I run a git fetch/pull/push. I added the following to my .bash_profile and restarted my cygwin session: SSH_ENV="$HOME/.ssh/environment" function start_agent { echo "Initialising new SSH agent..." /usr/bin/ssh-agent -s | sed 's/^echo/#echo/' > "${SSH_ENV}" echo succeeded chmod 600 "${SSH_ENV}" . "${SSH_ENV}" > /dev/null /usr/bin/ssh-add; } #

Using git with ssh-agent on Windows

柔情痞子 提交于 2019-11-30 04:43:14
I'm on Windows. I installed git and posh-git (some helpers for Windows PowerShell). I can add keys with ssh-add and can authenticate with github and my webserver. I can also use git from the PowerShell to interact with my repositories. But there is one thing I can't do: I use git-plus for the Atom editor. And I don't get it to push to my repo. What is my problem? posh-git and git for windows 2.7 should include everything you need to setup an ssh-agent . Once you have the module installed you can start the agent using something like: Import-Module ~\Documents\WindowsPowerShell\Modules\posh-git

Cannot push to git repository - permission denied

家住魔仙堡 提交于 2019-11-29 19:25:50
I have a following problem: $ git push -u origin master Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. I have already checked the connection doing this: $ ssh -vT git@github.com and output looks good, I was correctly authenticated. While checking further, I noticed that: $ ssh-add -l The agent has no identities. I have tried to run ssh-agent, but nothing changed: $ ssh-agent SSH_AUTH_SOCK=/tmp/ssh-A1mhFqvqncuO/agent.766; export SSH_AUTH_SOCK; SSH_AGENT_PID=767; export SSH_AGENT_PID;

Using git with ssh-agent on Windows

本小妞迷上赌 提交于 2019-11-29 00:38:48
问题 I'm on Windows. I installed git and posh-git (some helpers for Windows PowerShell). I can add keys with ssh-add and can authenticate with github and my webserver. I can also use git from the PowerShell to interact with my repositories. But there is one thing I can't do: I use git-plus for the Atom editor. And I don't get it to push to my repo. What is my problem? 回答1: posh-git and git for windows 2.7 should include everything you need to setup an ssh-agent. Once you have the module installed

Github Private Team Separate SSH Keys

馋奶兔 提交于 2019-11-28 11:51:21
I have an personal account on Github. So do a bunch of coworkers. We created a private team on Github for my team. We'd like to restrict access to the private repos to company laptops . One way to do this is to limit to ssh keys for the devices. However, I am not sure if GitHub allows Key-sandboxing for private projects. In short, can I set up a private team on GitHub (and associate SSH keys) such that I cannot, by mistake, access the code using my personal laptop? (This is not a security question. If I want to be evil and access the code on my personal laptop anyways, I can do it easily.) Its

How to make ssh-add read passphrase from a file?

做~自己de王妃 提交于 2019-11-28 05:01:40
I am trying to add key in ssh-agent and want ssh-add read password from the file using. How its possible? How do I automate this process from the shell script? enrico.bacis Depending on your distribution and on the version of ssh-add you may be able or not to use the -p option of ssh-add that reads the passphrase from stdin in this way: cat passfile | ssh-add -p keyfile If this is not working you can use Expect , a Unix tool to make interactive applications non-interactive. You'll have to install it from your package manager. I have written a tool for you in expect. Just copy the content in a

Hudson Git Plugin not working on windows

☆樱花仙子☆ 提交于 2019-11-28 01:03:47
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! VonC 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: .ssh id_rsa # private key id_rsa.pub # public key I've just had this exact same problem but in my

SSH Agent Forwarding with Ansible

蹲街弑〆低调 提交于 2019-11-27 17:09:47
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 into my server directly via ssh. The problem: When I attempt the same test shown above using the