# GitLab SSH key ###### tags: `git` * 以下流程適用於window系統 1. 打開git bash, 輸入`ssh-keygen -t rsa -b 2048 -C <email>`,例如:`ssh-keygen - t rsa -b 2048 -C kelvin777320@gmail.com` 2. 提問均按下enter跳過 ``` Enter file in which to save the key (/c/Users/kelvi/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: ``` 3. 至2中提到的檔案位置找到id_rsa.pub,開啟後ctrl+A複製==全部== ``` ssh-rsa ... kelvin777320@gmail.com ``` 5. 至gitlab頭貼下方按下Preferences  5. 左側User Sttings中按下SSH Keys  6. 將3中的內容貼上key欄位後按下Add key  7. 可以開始使用git clone
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up