How to run (git/ssh) authentication agent?
来源:互联网 发布:图纸软件哪个好 编辑:程序博客网 时间:2024/06/08 05:45
原文:http://stackoverflow.com/questions/4083079/how-to-run-git-ssh-authentication-agent
If you're using Msysgit, you can find a good tutorial here: http://anterence.blogspot.com/2012/01/ssh-agent-in-msysgit.html
- Add a file called
.bashrc
to your home folder Open the file and paste in:
#! /bin/bash eval `ssh-agent -s` ssh-add
- This assumes that your key is in the conventional ~/.ssh/id_rsa location. If it isn't, include a full path after the
ssh-add
command. Add to or create file
~/.ssh/config
with the contentsForwardAgent yes
In the original tutorial the
ForwardAgent
param isYes
, but it's a typo. Use all lowercase or you'll get errors.- Restart Msysgit. It will ask you to enter your passphrase once, and that's it (until you end the session, or your ssh-agent is killed.)
[EDIT] If you don't want to start a new ssh-agent every time you open a terminal, check out Keychain. I'm on a Mac now, so I used this tutorial to set it up, but I'm sure a Google search will have plenty of info for Windows.
- How to run (git/ssh) authentication agent?
- How to Use RSA Key for SSH Authentication
- 在windows的git上用ssh-add添加私钥id_rsa报错——Could not open a connection to your authentication agent.
- How to setup Git http authentication using LDAP in Apache
- Git add ssh authentication
- Git 报错Git Bash: Could not open a connection to your authentication agent
- 执行ssh-add时出现Could not open a connection to your authentication agent
- 执行ssh-add时出现Could not open a connection to your authentication agent
- windows ssh-add Could not open a connection to your authentication agent.
- 执行ssh-add时出现Could not open a connection to your authentication agent
- 执行ssh-add时出现Could not open a connection to your authentication agent
- How to Access Git Repository via SSH
- Windows下配置Git报错:Could not open a connection to your authentication agent.
- How to run an existing SQL Server Agent Job from C#
- Using an ssh-agent, or how to type your ssh password once, safely.
- how to run couchDB
- How to run Conda?
- git:could not open a connection to your authentication agent问题的解决(重新绑定私钥)
- ZenFramework中的View对象初始化流程
- 可扩展认证协议(EAP)4. EAP数据包格式
- JVM伪共享
- 用memcachephp查看memcache命中率
- webbench
- How to run (git/ssh) authentication agent?
- 关于mysql数据库的数据类型numeric和decimal
- Mysql分页查询通用存储过程
- Event-Listerner事件监听模式
- 接地处理
- python logging 记录异常信息
- 页面:回到顶部
- 移动应用实用测试指南
- Cache系列Ehcache