解决Ubuntu系统,clone github每次都输入密码问题


查看已有的ssh

ls -al ~/.ssh

复制ssh key

$ sudo apt-get install xclip
# Downloads and installs xclip. If you don't have `apt-get`, you might need to use another installer (like `yum`)

$ xclip -sel clip < ~/.ssh/id_rsa.pub
# Copies the contents of the id_rsa.pub file to your clipboardclip < ~/.ssh/id_rsa.pub

如果复制失败,直接使用cat手动复制

cat ~/.ssh/id_rsa.pub

在github中添加ssh key

打开github后台 https://github.com/settings/keys

添加一个新的sshkey,粘贴刚才复制的值

使用ssh方式clone 代码

git@github.com:giant-app/LiveWallpaper.git