使用ssh keys连接远程GIT仓库后不用每次都输入用户名密码很方便
第一步先生成一个KEY
ssh-keygen -t rsa -C "xxxxxxx@qq.com"
第二步把key拷备到git网站上
cat ~/.ssh/id_rsa.pub
如果提示port不对的话就打开 /etc/ssh_config文件在开头加上
Host git.yiwutong.net
Port 5631
就行了
使用ssh keys连接远程GIT仓库后不用每次都输入用户名密码很方便
第一步先生成一个KEY
ssh-keygen -t rsa -C "xxxxxxx@qq.com"
第二步把key拷备到git网站上
cat ~/.ssh/id_rsa.pub
如果提示port不对的话就打开 /etc/ssh_config文件在开头加上
Host git.yiwutong.net
Port 5631
就行了
转载于:https://my.oschina.net/tongjh/blog/293769