附实现的效果图
/Hanani_Jia/article/details/77950594
github 搭建部分代码(供复制使用)
Administrator@SC-02120600 MINGW64 ~$ $ ssh-keygen-t rsa-C "2743319061@"bash: $: command not foundAdministrator@SC-02120600 MINGW64 ~$ ssh-keygen-t rsa-C "2743319061@"bash: ssh-keygen-t: command not foundAdministrator@SC-02120600 MINGW64 ~$ ssh-keygen -t rsa-C "2743319061@"Too many arguments.usage: ssh-keygen [-q] [-b bits] [-t dsa | ecdsa | ed25519 | rsa][-N new_passphrase] [-C comment] [-f output_keyfile]ssh-keygen -p [-P old_passphrase] [-N new_passphrase] [-f keyfile]ssh-keygen -i [-m key_format] [-f input_keyfile]ssh-keygen -e [-m key_format] [-f input_keyfile]ssh-keygen -y [-f input_keyfile]ssh-keygen -c [-P passphrase] [-C comment] [-f keyfile]ssh-keygen -l [-v] [-E fingerprint_hash] [-f input_keyfile]ssh-keygen -B [-f input_keyfile]ssh-keygen -D pkcs11ssh-keygen -F hostname [-f known_hosts_file] [-l]ssh-keygen -H [-f known_hosts_file]ssh-keygen -R hostname [-f known_hosts_file]ssh-keygen -r hostname [-f input_keyfile] [-g]ssh-keygen -G output_file [-v] [-b bits] [-M memory] [-S start_point]ssh-keygen -T output_file -f input_file [-v] [-a rounds] [-J num_lines][-j start_line] [-K checkpt] [-W generator]ssh-keygen -s ca_key -I certificate_identity [-h] [-U][-D pkcs11_provider] [-n principals] [-O option][-V validity_interval] [-z serial_number] file ...ssh-keygen -L [-f input_keyfile]ssh-keygen -Assh-keygen -k -f krl_file [-u] [-s ca_public] [-z version_number]file ...ssh-keygen -Q -f krl_file file ...Administrator@SC-02120600 MINGW64 ~$Administrator@SC-02120600 MINGW64 ~$ ssh-keygen -t rsa -C "2743319061@"Generating public/private rsa key pair.Enter file in which to save the key (/c/Users/Administrator/.ssh/id_rsa):Created directory '/c/Users/Administrator/.ssh'.Enter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in /c/Users/Administrator/.ssh/id_rsa.Your public key has been saved in /c/Users/Administrator/.ssh/id_rsa.pub.The key fingerprint is:SHA256:gUgCxaDq03yIRrKf4JYDIiSxgKnmB+b4A1L2wWWBm5A 2743319061@The key's randomart image is:+---[RSA 2048]----+|+*o..... ||* Eo..o. ||+o o.=. . ||==o = . ||@+.. . S ||@++.o ||BBo+ . ||o*+.. ||..+. |+----[SHA256]-----+Administrator@SC-02120600 MINGW64 ~$ ssh -T git@The authenticity of host ' (13.229.188.59)' can't be established.RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added ',13.229.188.59' (RSA) to the list of known hosts.Enter passphrase for key '/c/Users/Administrator/.ssh/id_rsa':Hi cyjlnk! You've successfully authenticated, but GitHub does not provide shell access.Administrator@SC-02120600 MINGW64 ~$ git config --global user.name "cyjlnk"Administrator@SC-02120600 MINGW64 ~$ git config --global user.email "2743319061@"Administrator@SC-02120600 MINGW64 ~$ cd /EAdministrator@SC-02120600 MINGW64 /E$ git clone /cyjlnk/test.gitCloning into 'test'...remote: Counting objects: 3, done.remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0Unpacking objects: 100% (3/3), done.Administrator@SC-02120600 MINGW64 /E$ cd /testbash: cd: /test: No such file or directoryAdministrator@SC-02120600 MINGW64 /E$ cd testAdministrator@SC-02120600 MINGW64 /E/test (master)$ lsREADME.md text.txtAdministrator@SC-02120600 MINGW64 /E/test (master)$ git add test.txtfatal: pathspec 'test.txt' did not match any filesAdministrator@SC-02120600 MINGW64 /E/test (master)$ git add text.txtAdministrator@SC-02120600 MINGW64 /E/test (master)$ git commit -m "测试"[master 91f61bb] 测试1 file changed, 0 insertions(+), 0 deletions(-)create mode 100644 text.txtAdministrator@SC-02120600 MINGW64 /E/test (master)$ git push origin masterLogon failed, use ctrl+c to cancel basic credential prompt.Username for '': cyjlnkCounting objects: 3, done.Delta compression using up to 4 pressing objects: 100% (2/2), done.Writing objects: 100% (3/3), 275 bytes | 91.00 KiB/s, done.Total 3 (delta 0), reused 0 (delta 0)To /cyjlnk/test.git7d64b2b..91f61bb master -> masterAdministrator@SC-02120600 MINGW64 /E/test (master)$ cat ~/.ssh/id_rsa.pubssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCrfmrxrdZhfJazrLjxtaABWTgTraWTd96F7WGVXLOh3tiSo6RCny1GZBrWHdOC1UueZilx29BAY9bBvPTk/izIKcYtLEe12TH+WEPy/nQ9K8S/Ymn/StCPerM0uLdvGBl0VLQeCL8L8bsGzEk6h7yvCFKy23hB46xtYkJKoMK5+xVNJZM7U0u580tocaJUdO6KqmSMF7SE0psA2to4qyXshFZd80zS8oYAxz11x155Gkh4dbNNeo2GYvgSZztywXABFwroXC5GBg+y/W6v9YtmEP/aFwi2texent6BUOO0TnH3DDRENpiZ6s2Ts8wQe1Ctl87WjS98H3rboTvRMT4t 2743319061@Administrator@SC-02120600 MINGW64 /E/test (master)$ cd ..Administrator@SC-02120600 MINGW64 /E$ cd eAdministrator@SC-02120600 MINGW64 /E/e$ ls'02_01_常见控件(四)'/ element恢复密钥/tz/ 计算机基础/02_date_and_time/ facebook/ URL/ 节能减排/03_autocomplete_textview/ festec/Users/近代史/0606143012343360.xlsGithub/util/ 经法/0606143048614777.xlshy/ VB/ 酷评/'0613170941235003 (1).xls'JisuCloud/ wun/ 理论力学/0613170941235003.xlsjosn/ xml/ 刘德志/0613170946227181.docx kaoshi/y恢复密钥/ 鲁大师/0613170951812291.docx KDubaSoftDownloads/ zl/ 普化/0613170956508353.docx lh/ zy/ 汽车顶棚/考研数学复习全书基础篇—线性代数.pdf mars/ ZYH/ 软件/360zip/ Meitu/百次斬/时间管理/53.0.2785.101_chrome_installer.exe.dl.cfg miyue/备份/ 手机文件/86461461040893456.zip o盘/ 变更申请表.doc 刷机/appcan/'project AS'/材料力学/ 水印/ASproject/ putty/承诺书.jpg 物理化学/Axure/ putty.exe* 打印/ 小程序/BaiduNetdisk/ QMDownload/ 代理/ 新建文件夹/BaiduNetdiskDownload/ QQPCMgr/ 电路/'新建文件夹 (2)'/bomb/ qudong/电商/'新建文件夹 (3)'/caj/qudong.rar 服务器/ '新建文件夹 (4)'/'Camera6.27 '/ RECYCLER/ 个人事迹-常云举.doc 迅雷下载/CrystalDiskMark3_0_2Beta/ SogouDownload/ 工程热力学/ 制度/c语言/ sx/ 公务员/桌面(雷诺)/DriverGenius/ Tencent/ 会员表/Administrator@SC-02120600 MINGW64 /E/e$ cd ASprojectAdministrator@SC-02120600 MINGW64 /E/e/ASproject$ lsFestec/ Festec2/ lkdwlsyxz/ Lkdwlsyxz_CN/ temp/Administrator@SC-02120600 MINGW64 /E/e/ASproject$ git add Festec2fatal: Not a git repository (or any of the parent directories): .gitAdministrator@SC-02120600 MINGW64 /E/e/ASproject$ git clone /cyjlnk/test.gitCloning into 'test'...remote: Counting objects: 6, done.remote: Compressing objects: 100% (3/3), done.remote: Total 6 (delta 0), reused 3 (delta 0), pack-reused 0Unpacking objects: 100% (6/6), done.Administrator@SC-02120600 MINGW64 /E/e/ASproject$ cd testAdministrator@SC-02120600 MINGW64 /E/e/ASproject/test (master)$ git config --listcore.symlinks=falsecore.autocrlf=truecore.fscache=truecolor.diff=autocolor.status=autocolor.branch=autocolor.interactive=truehelp.format=htmlrebase.autosquash=truehttp.sslcainfo=D:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crthttp.sslbackend=openssldiff.astextplain.textconv=astextplainfilter.lfs.clean=git-lfs clean -- %ffilter.lfs.smudge=git-lfs smudge -- %ffilter.lfs.process=git-lfs filter-processfilter.lfs.required=truecredential.helper=manageruser.name=cyjlnkuser.email=2743319061@core.repositoryformatversion=0core.filemode=falsecore.bare=falsecore.logallrefupdates=truecore.symlinks=falsecore.ignorecase=trueremote.origin.url=/cyjlnk/test.gitremote.origin.fetch=+refs/heads/*:refs/remotes/origin/*branch.master.remote=originbranch.master.merge=refs/heads/masterAdministrator@SC-02120600 MINGW64 /E/e/ASproject/test (master)$