栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

gitee的ssh设置

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

gitee的ssh设置

$ ssh-keygen -t rsa -C "li_tao@neusoft.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/viviliving/.ssh/id_rsa):
/c/Users/viviliving/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/viviliving/.ssh/id_rsa
Your public key has been saved in /c/Users/viviliving/.ssh/id_rsa.pub
The key fingerprint is:
SHA256:nJjk0qgtgNOKjTEvPN9hTj30aULoKl1d9JVxT7oTvE8 li_tao@neusoft.com
The key's randomart image is:
+---[RSA 3072]----+
|             .o..|
|         .   +.o.|
|      . . . . + .|
|..   =.+ o .   + |
|* . o.*oS     + E|
|oX o.o+.. .    + |
|=o* o= + +      .|
| ooo* . +        |
|  .o o           |
+----[SHA256]-----+

viviliving@pc MINGW64 ~/.ssh
$ ssh -T
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
           [-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
           [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
           [-i identity_file] [-J [user@]host[:port]] [-L address]
           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
           [-Q query_option] [-R address] [-S ctl_path] [-W host:port]
           [-w local_tun[:remote_tun]] destination [command [argument ...]]

viviliving@pc MINGW64 ~/.ssh
$ ssh -T li_tao@neusoft.com
ssh: Could not resolve hostname neusoft.com: Name or service not known

viviliving@pc MINGW64 ~/.ssh
$ ssh -T git@gitee.com
The authenticity of host 'gitee.com (180.97.125.228)' can't be established.
ED25519 key fingerprint is SHA256:+ULzij2u99B9eWYFTw1Q4ErYG/aepHLbu96PAUCoV88.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'gitee.com' (ED25519) to the list of known hosts.
Hi 一二四! You've successfully authenticated, but GITEE.COM does not provide shell access.

viviliving@pc MINGW64 ~/.ssh
$ ssh -T git@gitee.com
Hi 一二四! You've successfully authenticated, but GITEE.COM does not provide shell access.

viviliving@pc MINGW64 ~/.ssh
viviliving@pc MINGW64 /e/git/test1
$ git clone git@gitee.com:viviliving/vivisoft.git
fatal: destination path 'vivisoft' already exists and is not an empty directory.

viviliving@pc MINGW64 /e/git/test1
$ git clone git@gitee.com:viviliving/vivisoft.git
Cloning into 'vivisoft'...
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 9 (delta 0), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (9/9), 7.46 KiB | 127.00 KiB/s, done.

viviliving@pc MINGW64 /e/git/test1
$

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/836882.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号