“Key is invalid” message on GitHub

后端 未结 18 2013
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-30 01:49

I have generated SSH keys for a new server installation according to the procedure outlined here. However, when I copy the contents of id_rsa.pub to my keys list on

18条回答
  •  有刺的猬
    2021-01-30 02:34

    If you have indeed copied the content of your id_rsa.pub key (in one continuous line), the result should look like (from The GitHub ssh help page):

    ssh key

    The OP louism confirms a copy-paste issue:

    • For a very obscure reason, copy-pasting from emacs removed the \n after ssh-rsa, and that was causing the problem.
    • Copy-pasting from vi solved the problem.

提交回复
热议问题