第一:检查.ssh是否存在(ls -al ~/.ssh) $ ls -al ~/.ssh Lists the files in your .ssh directory, if they exist 第二:产生新的SSH key(ssh-keygen -t rsa -C "your_email@example.com") $ ssh-keygen -t rsa -C "your_email@example.com" Creates a new ssh key, usi
在linux下搭建git环境1.创建Github账号,https://github.com2.Linux创建SSH密钥: ssh-keygen ##一直默认就可以了 3.将公钥加入到Github账户信息Account Settings->SSH Key4.测试验证是否成功. ssh -T git@github.com Hi someone! You've successfully authenticated, but GitHub does not provide shell access.