xxxxxxxxxx
type: ssh-keygen -t ed25519 -C "gcanete@dnamicro.com"
output:
Generating public/private ed25519 key pair.
Enter file in which to save the key (/home/user/.ssh/id_ed25519):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
type cat ~/.ssh/id_ed25519.pub
copy all the text and paste on the GitLab key text
type ssh -T git@http://gitlab.dnamicro.net/
type git clone git@gitlab.dnamicro.net:gcanete/simpleandroidproject.git
xxxxxxxxxx
# before doing below steps please make your you have generated --
# public and private keys file in the .ssh folder.
# To generate agent pid run this below line
eval "$(ssh-agent -s)"
# Output: Agent pid 15939 # Note: in your case output will be different.
# then run this
ssh-add ~/.ssh/your_id_where_key_is_saved
# if output contains below result it means You're done.
# Identity added: /Users/basitkhan/.ssh/your_id_where_key_is_saved (your_email.com)
xxxxxxxxxx
Basically it will add your private key to the ssh-agent which will act like
agent to check is the request is authenticated or not
to add use this command
sh-add ~/.ssh/HereComeNAmeForYourKey