按照教程,死活连不上github
原因是我用记事本打开了pub文件,复制粘贴, 事实证明这样可能会导致复制的内容有问题。
解决方法是:使用CLI来做,先cd到ssh上一级目录,再执行下面命令复制密钥,输入到github里面。
Copy the SSH public key to your clipboard.
If your SSH public key file has a different name than the example code, modify the filename to match your current setup. When copying your key, don't add any newlines or whitespace.
$ clip < ~/.ssh/id_ed25519.pub
# Copies the contents of the id_ed25519.pub file to your clipboard