在一台mac电脑配置多个github或gogs地址,通过ssh获取项目代码
wuyachaodeMacBook-Pro:.ssh ll$ ssh-****** -t rsa -C [email protected] -f gogs_rsa
输入密码两次
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in gogs_rsa.
Your public key has been saved in gogs_rsa.pub.
The key fingerprint is:
SHA256:C1OLZYFbIu0YmzuRwRkyVXjR2rui4bdDQ8+QrfMEkKU [email protected]
The key's randomart image is:
+---[RSA 2048]----+
| oooO++. |
| oX.= o. |
| E% O+ |
| * O=o. |
| ++*S. |
| o =o=. |
| .o =.. |
| . .+ o |
| oo.+ |
+----[SHA256]-----+
wuyachaodeMacBook-Pro:.ssh ll$ ls
config github_rsa.pub gogs_rsa.pub id_rsa.pub
github_rsa gogs_rsa id_rsa known_hosts