[260254@w26-260254 c3d-keras]$ git init
[260254@w26-260254 c3d-keras]$ ssh-keygen -t rsa -C "[email protected]"
Generating public/private rsa key pair.
Enter file in which to save the key (/home/260254/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/260254/.ssh/id_rsa.
Your public key has been saved in /home/260254/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:1JgTTa1RoABn9yhcrPZ8l8IG1LjSK1zYR28sPP0CcLY [email protected]
The key's randomart image is:
+---[RSA 2048]----+
| ..+.+=o+. |
| + +=OB . |
| o*BBoB |
| =o*.E = |
| o =S= = o |
| o + = + . |
| . o o . |
| |
| |
+----[SHA256]-----+
[260254@w26-260254 c3d-keras]$ cat ~/.ssh/id_rsa.pub
[260254@w26-260254 c3d-keras]$ ssh -T [email protected]
The authenticity of host 'github.com (52.74.223.119)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
RSA key fingerprint is MD5:16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,52.74.223.119' (RSA) to the list of known hosts.
Hi zhonguochong! You've successfully authenticated, but GitHub does not provide shell access.
git add
git commit -m "xxx"
git remote add origin https://github.com/zhonguochong/c3d_keras.git
git push -u origin master
github代碼pull/push
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.