git specify the key file in the pull / push

# Ssh config file to edit the current user of 
vim ~ /. SSH / config 

# Each group started by Host 
Host gitlab.com # here ip / Domain is your host name, domain name or write ip 
    Hostname altssh.gitlab.com 
    the User git 
    Port 443 
    PreferredAuthentications publickey 
    IdentityFile ~ /. SSH / gitlab

 

Guess you like

Origin www.cnblogs.com/cidgur/p/12432280.html