1、在終端中輸入
ssh-keygen -t rsa -C "username" (注:username爲你git上的用戶名)
三次回車,如有看到The key's randomart image is,代表你的SSH Key生成成功了。
2、查看並將生產的SSH Key複製出來
cat ~/.ssh/id_rsa.pub
3、將SSH Key粘貼到自己的git賬戶上。
1、在終端中輸入
ssh-keygen -t rsa -C "username" (注:username爲你git上的用戶名)
三次回車,如有看到The key's randomart image is,代表你的SSH Key生成成功了。
2、查看並將生產的SSH Key複製出來
cat ~/.ssh/id_rsa.pub
3、將SSH Key粘貼到自己的git賬戶上。