Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/Shuqing/.ssh/id_rsa): id_rsa_xxx Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in id_rsa_coding. Your public key has been saved in id_rsa_coding.pub. The key fingerprint is: SHA256:m6Z/eQUIxxxxxxxxxx 57038xxxxx@qq.com The key's randomart image is: +---[RSA 2048]----+ |o.oo+... . | |o+.=.+ o . | |+.*o+ . o . | |o=oo. . . | |o.=.. . S. . | | * . o =E+. . | |. o . o B oo . | | . + o+.. | | .... o. | +----[SHA256]-----+
ssh -T git@e.coding.net CODING 提示: Hello xx, You've connected to coding.net via SSH. This is a Personal Key. 清风穆云,你好,你已经通过 SSH 协议认证 coding.net 服务,这是一个个人公钥.
github
1 2 3
$ ssh -T git@github.com Hi Sutune! You've successfully authenticated, but GitHub does not provide shell access.
gitlab
1 2 3
$ ssh -T git@git.xx.xx Welcome to GitLab, xx!
gitee
1 2
mac@Sutune .ssh % ssh -T git@gitee.com Hi sutune! You've successfully authenticated, but GITEE.COM does not provide shell access.
ssh-add ~/.ssh/id_rsa_gitee.pub @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for '/Users/mac/.ssh/id_rsa_gitee.pub' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored.