Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- edit ~/.ssh/config
nano ~/.ssh/config
- Add:
Host gitlab.com
Hostname altssh.gitlab.com
User git
Port 443
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
- Copy ~/.ssh/id_rsa.pub and add in https://gitlab.com/profile/keys
- If ~/.ssh/id_rsa.pub does not exists, generate it with:
ssh-keygen
Add Comment
Please, Sign In to add comment