SSH & SSH keys

Using the SSH protocol, you can connect and authenticate to remote servers and services. With SSH keys, you can connect to GitHub without supplying your username or password at each visit.

Before you generate an SSH key, you can check to see if you have any existing SSH keys.

1.Open Terminal.
2.Enter ls -al ~/.ssh to see if existing SSH keys are present:
ls -al ~/.ssh

image.png

存在。

Copy the SSH key to your clipboard.

If your SSH 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.
pbcopy < ~/.ssh/id_rsa.pub

Testing your SSH connection

1.Open Terminal.
2.Enter the following:

ssh -T git@github.com

出現(xiàn)這個:
Hi aikuyun! You've successfully authenticated, but GitHub does not provide shell access.

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi閱讀 7,854評論 0 10
  • 肥婆總是聞到一股尸體腐爛的惡臭。 她和老公經(jīng)營著屠宰場,生意好,顧客三教九流。女兒14歲,初一,乖巧。 ...
    老愛說閱讀 1,688評論 15 9

友情鏈接更多精彩內(nèi)容