我對SSH等知之甚少。我試圖在Github上添加新的SSH密鑰。爲此,我遵循這個過程:Github:新的SSH密鑰
在終端
[email protected]:~$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/work/.ssh/id_rsa):
Created directory '/home/work/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/work/.ssh/id_rsa.
Your public key has been saved in /home/work/.ssh/id_rsa.pub.
然後是密鑰指紋和關鍵的randomart圖像。
在瀏覽器
我開了:
Github >> Settings >> SSH and GPG keys >> New SSH key
它要求標題和重點。我給了一些標題,然後我在那裏複製了我的鑰匙id_rsa.pub。它給出了一個錯誤:
Key is invalid. It must begin with 'ssh-ed25519', 'ssh-rsa', 'ssh-dss', 'ecdsa-sha2-nistp256', 'ecdsa-sha2-nistp384', or 'ecdsa-sha2-nistp521'. Check that you're copying the public half of the key
我不知道如何進一步進行。請告訴我我錯在哪裏,或者指導我一個很好的教程。
OS細節:Ubuntu的14.04.5
謝謝!
PS:我想了解「密鑰指紋」和「關鍵的randomart形象」在互聯網上,但一切都在我頭上
唷!這是我的錯誤。在複製密鑰時,我正在離開'工作@ Nirvair'。我注意到我沒有像所說的那樣複製**所有內容。非常感謝! – ssokhey