github和gitlab共存

来源:互联网 发布:数据库的事物是什么 编辑:程序博客网 时间:2024/06/05 09:23
#gitlabHost gitlab        HostName gitlab.*.com        IdentityFile ~/.ssh/gitlab_id_rsa#githubHost github        HostName github.com        IdentityFile ~/.ssh/github_id_rsa
bogon:.ssh bao$ ssh-keygen -t rsa -C "346126185@qq.com"Generating public/private rsa key pair.Enter file in which to save the key (/Users/bao/.ssh/id_rsa): /users/bao/.ssh/github_id_rsaEnter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in /users/bao/.ssh/github_id_rsa.Your public key has been saved in /users/bao/.ssh/github_id_rsa.pub.The key fingerprint is:SHA256:GxBJmbrvW0qX0T9TD5HnskXC8TxJxDZXvXMEpfDzFsY 346126185@qq.comThe key's randomart image is:+---[RSA 2048]----+|     .o+    . ===||      +.     +oX=||     ..       XEO||    .  . .    .@+||     .  S .   + B||    .    = . . B ||     .. =   + . .||     ..+     o   ||     .+.         |+----[SHA256]-----+bogon:.ssh bao$bogon:.ssh bao$ ssh-keygen -t rsa -C "gebaoning@vipkid.com.cn"Generating public/private rsa key pair.Enter file in which to save the key (/Users/bao/.ssh/id_rsa): /users/bao/.ssh/gitlab_id_rsaEnter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in /users/bao/.ssh/gitlab_id_rsa.Your public key has been saved in /users/bao/.ssh/gitlab_id_rsa.pub.The key fingerprint is:SHA256:e2kin/1oTyZWNSuTB6QWRWm49vnajQOhxXI8mbSOQio gebaoning@vipkid.com.cnThe key's randomart image is:+---[RSA 2048]----+|          .++.   ||          .++    ||          o*.+o  ||        ..+ @+ o ||       oS. O=+o  ||    E . ..oo=+   ||     .. o.* oo   ||       o B.= .oo ||        o.oo+.o..|+----[SHA256]-----+bogon:.ssh bao$ ls -altotal 72drwx------  10 bao  staff   340 11 13 20:21 .drwxr-xr-x+ 49 bao  staff  1666 11 13 20:03 ..-rw-r--r--   1 bao  staff   156 11 13 20:03 config-rw-------   1 bao  staff  1679 11 13 20:10 github_id_rsa-rw-r--r--   1 bao  staff   398 11 13 20:10 github_id_rsa.pub-rw-------   1 bao  staff  1679 11 13 20:21 gitlab_id_rsa-rw-r--r--   1 bao  staff   405 11 13 20:21 gitlab_id_rsa.pub
原创粉丝点击