# GitLab ssh key 設定教學 1.打開終端 2.生成金鑰 ``` ssh-keygen ``` 3.複製公鑰 ``` ~/.ssh/id_rsa.pub ``` 4.貼到 GitLab `設定 > 新增金鑰。` 5.測試連線 ``` ssh -T git@gitlab.com ```