Mac下生成SSH

ljdeMacBook-Pro:shopxie lj$ ssh-keygen   // 命令行输入,然后一直回车

Generating public/private rsa key pair.

Enter file in which to save the key (/Users/lj/.ssh/id_rsa):

/Users/lj/.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 /Users/lj/.ssh/id_rsa.

Your public key has been saved in /Users/lj/.ssh/id_rsa.pub.

The key fingerprint is:

SHA256:bV4nKpx5qV9Iu7O8ZJRfGIUMM/0cJkq3RErNU5DhWLc [email protected]

The key's randomart image is:

+---[RSA 2048]----+

|          =B=*+  |

|        ..B%oo. |

|        .o+oBE. |

|        ....oo  |

|        S * + o  |

|      . B B +  |

|        = X o    |

|        B.o    |

|        ..*+    |

+----[SHA256]-----+

ljdeMacBook-Pro:shopxie lj$ cat ~/.ssh/id_rsa.pub | pbcopy   // ok,这下就成功复制到粘贴板了

ljdeMacBook-Pro:shopxie lj$ 

你可能感兴趣的:(Mac下生成SSH)