GitHub添加SSH keys報錯Key is invalid. It must begin with ‘ssh-ed25519’, ‘ssh-rsa’, ‘ssh-dss’, 'ecdsa-sha
在GitHub上Add SSH key的時候報錯:Key is invalid. It must begin with ‘ssh-ed25519’, ‘ssh-rsa’, ‘ssh-dss’, 'ecdsa-sha。。。(紅字,在GitHub頁面上方顯示)
原因:復制id_rsa.pub中內容的時候格式改變,導致粘貼到GitHub上因為格式錯誤而報錯。
解決:復制id_rsa.pub中key的時候保持原有格式不要修改,也不要刪除開頭的ssh-rsa和尾部的user@hostname字樣,原樣粘貼過去,成功