Check if ur richman
ls /home/ivan/.ssh
- if any .pub existed, Merry xmas.
Generate ONE pair
ssh-keygen -t rsa -C "ivandjp@163.com - github“
- pick folder & file, suggest use default(/home/ivan/.ssh/id_rsa)
- pick passphrase, suggest empty, otherwise will be needed for every connection
- hit ur enter more harder again
- more params check
man ssh-keygen
Check if ur rich now
ls /home/ivan/.ssh
- id_rsa and id_rsa.pub shows in ur
pokemonpocket cat id_rsa.pub
- start with "ssh-ras", end with "ivandjp@163.com - github"(-C)
Github, I tell u
- log
- hit ur head on left-top
- hit setting, hit SSH and GPG Keys, hit new SSH key
- paste id_rsa.pub into the big box, give a name
- done
Others
- local set git
git config --global user.name "ivan"
git config --global user.email "ivandjp@163.com"
- multi accounts setting is next part~~~
本文由 Ivan Dong 创作,采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
最后编辑时间为: Jul 7, 2023 at 04:45 am