Gitlab-generating a new SSH key

generating a new SSH key

步驟如下:

  1. ssh-keygen -t ed25519 -C 電子郵件 (顯示的問題按Enter)
  2. eval "$(ssh-agent -s)"
  3. ssh-add -K ~/.ssh/id_rsa
  4. cd ~/.ssh
  5. ls
  6. cat id_ed25519.pub (會得到金鑰)
  7. 把金鑰上傳後,就可以git clone … 了

參考:https://ithelp.ithome.com.tw/articles/10205988