0
点赞
收藏
分享

微信扫一扫

gitee的ssh设置

前程有光 2022-04-25 阅读 84
git
$ 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
举报

相关推荐

0 条评论