作者:Henrycelia | 来源:互联网 | 2023-09-25 19:54
篇首语:本文由编程笔记#小编为大家整理,主要介绍了typescript 使用SSH验证Github相关的知识,希望对你有一定的参考价值。
//test to see if it is setup
ls -al ~/.ssh
//if not generate new key
ssh-keygen -t rsa -b 4096 -C email
//verify if it is created
ls -al ~/.ssh
//add key to agent program
//linux marc
eval "$(ssh-agent -s)"
//windows
ssh-agent -s
//add rsa key to ssh
ssh-add ~/.ssh/id_rsa
//inform github the ssh key to let it know about us when pushing code
//do this by copying our public pair of ssh key to github
//win
clip <~/ssh/.id_rsa.pub
//mac
pbcopy <~/.ssh/id_rsa.pub
//linux setup pbcopy and do same as mac
//Now lets paste this on github by
Github - profile - edit profile - ssh keys - add sshkey
//verify
ssh -T git@github.com
//go to github to see gitub if the color is now green then it is successfully
if not google github error permission denied (public key)