ssh-keygen -t rsa -C "用户名"
一直按回车便可git
cat ~/.ssh/id_rsa.pubgithub
复制id_rsa.pub中的内容到你git服务器(gitlab,coding,github)的配置ssh公钥的地方http://git服务器ip或域名/profile/keys/new服务器
ssh -vT git服务器ip或域名 -p 22