“Key is invalid” message on GitHub

后端 未结 18 2019
爱一瞬间的悲伤
爱一瞬间的悲伤 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:55

    If you are using bash for windows as your terminal and you are copying via shift + highlighting + ctrl-c, then this solution might work for you:

    1. After copying the key and pasting it into notepad:

    1. Now go to Edit > Select All or Ctrl-A

    1. The large amounts of blue areas are whitespace. You need to delete them with either the backspace or the delete key. Leave the whitespace that in the green circles.

    1. You should now be able to copy and paste this edited version into github.

提交回复
热议问题