我已经在unbuntu上创建了ssh密钥
id_company
和
id_company.pub
,并将配置更新为:
Host gitlab.company.com
Hostname gitlab.company.com
#PreferredAuthentications publickey
IdentityFile ~/.ssh/id_company
现在,我尝试使用以下方法测试连接:
ssh -T git@gitlab.company.com
,但我收到了
ssh: connect to host gitlab.company.com port 22: Connection timed out
我不知道是什么原因,还是我做错了什么?