Android-PdfViewer Android 开源项目 git托管

已关注
提示信息

SSH协议:

第一步:设置ssh公钥
1、生成ssh公钥
在windows或linxu执行以下命令,输入命令后连续回车,即可生成id_rsa.pub公钥文件
  1. [root@iz ~]# ssh-keygen -t rsa
  2. Generating public/private rsa key pair.
  3. Enter file in which to save the key (/root/.ssh/id_rsa):
  4. Enter passphrase (empty for no passphrase):
  5. Enter same passphrase again:
  6. Your identification has been saved in /root/.ssh/id_rsa.
  7. Your public key has been saved in /root/.ssh/id_rsa.pub.
  8. The key fingerprint is:
  9. SHA256:/OIgaoec9Oie7DbXR329ibXWvudGcjUmj3PO+v5JdbU
  10. The key's randomart image is:
  11. +---[RSA 2048]----+
  12. | |
  13. | |
  14. | .|
  15. | . . o+|
  16. | S . =E=|
  17. | . . . o . =.o=|
  18. | . =o.o . o o X= |
  19. |.+oooo.+ . . =.++|
  20. |==+ oo. . ..=O*|
  21. +----[SHA256]-----+
windows 文件路径: C:/users/用户名/.ssh/id_rsa.pub
linux 文件路径: /用户home目录/.ssh/id_rsa.pub
打开id_rsa.pub文件内容
2、登录本站,进入 https://mycoding.com/my/key/git
将步骤1生成的文件id_rsa.pub内容复制ssh公钥输入框,添加公钥即可。
第二步:clone或push项目

输入以下命令,回车,即可clone代码到本地:
  1. git clone git@code.mycoding.com:41/pc/p16179540567419