ssh-keygen -t rsa -C "XXX" $ ssh-keygen -t rsa -C "XXX" Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/16450/.ssh/id_rsa): /c/Users/16450/.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/16450/.ssh/id_rsa Your public key has been saved in /c/Users/16450/.ssh/id_rsa.pub The key fingerprint is: SHA256:cL+QUv4y5bpwitP476Us/dK6hQmNwlridWJg4hcgeZg XXX@XX.com The key's randomart image is: +---[RSA 3072]----+ |.= | |E o | |..o. . o | |.o o. B o | | ...B = S o | | ..* + o B . | | o o..*.* | | o.o=oB. | | .oo+X*. | +----[SHA256]-----+
.ssh/id_rsa.pub,用记事本打开。ctrl+a将所有内容复制到剪切板。
登录GitHub,点击右上角自己的头像 - setting,找到SSH and GPG keys,点击add SSH key:
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.