#打开git bash
#查看本地公钥
cd ~/.ssh
cat id_rsa.pub
#复制到github即可
出现下面原因排查
Cloning into 'computer-science'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
一般是使用22号端口连接了其他服务器之后出现的问题,换用443号端口即可
vim ~/.ssh/config
#添加下面语句即可
Host github.com
Hostname ssh.github.com
Port 443