Generating a new SSH key pair

To generate a new SSH key pair, use the following command:
Git Bash on Windows / GNU/Linux / macOS:

ssh-keygen -t rsa -C "your.email@example.com" -b 4096

The next step is to copy the public SSH key as we will need it afterwards.
To copy your public SSH key to the clipboard, use the appropriate code below:

GNU/Linux (requires the xclip package):

xclip -sel clip < ~/.ssh/id_rsa.pub

 

posted on 2019-11-26 12:51  山月艾草  阅读(625)  评论(0编辑  收藏  举报