Add ssh key to gitlab

 


Create the key

# generate ssh key
$ ssh-keygen -t rsa -b 4096 -C "user@gamil.com"
$ ls
newKey
newKey.pub

# list ssh agent
$ ssh-add -l
$ ssh-add -L


# add to ssh agent
$ ssh-add ~/.ssh/newKey


# list ssh agent
$ ssh-add -l
$ ssh-add -L


Then you can update the key to gitlab or github.

Comments