sudo apt-get install git openssh-server openssh-client
git config --global user.name "ym0817"
git config --global user.email "891922806@qq.com.cn"
本地生成ssh公钥:ssh-keygen -C "891922806@qq.com.cn" -t rsa
cd cd ~/.ssh/
ls (显示以下三个文件夹 id_rsa id_rsa.pub known_hosts )
cat id_rsa.pub
显示秘钥如下:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCmm9GIgNJ8gW9bKSoWObEJty3pHSiCP25QKNFxoQb/d+4WnrMpoYs6JkGgelqeQoG2CTS2oCidDGDms3m/UsJmKj3wbe880TkrtIIb15hU4/DXzTwTQAkRByssHZdZzjPjBr8rDpOHZFIRlskCaOnAAwQ3+l4HJWMVBz1+DczL7/dU90cpSiW0J5w7R4B3fSHxtOkqUnqvMtfZO2onOCdOfSyZVqYm6axCIB7d7ZFXElL+lbWjwc5gRreFG9v/7WeCdWcUseUqwhd8dy/hgFpZdcWGMBi5tJTAn4wF2ydIeAyygosVTfEFYTanb5tp+uWzwRx0SvAwUPhYuU2B7E9x 891922806@qq.com.cn
ymm@ubuntu:~/.ssh$
# git-token : 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