bitbucket ssh登錄失敗
執(zhí)行命令
ssh -T -vvv git@bitbucket.org
結(jié)果提示:
ssh: connect to host bitbucket.org port 22: Operation timed out
原因:使用了22端口其實(shí)并不穩(wěn)定。配置的其實(shí)如果連接到443端口更穩(wěn)定。修改 ~/.ssh/config
,增加指定Port為443,并且使用Hostname,既可。
~/.ssh/config 文件內(nèi)容如下:文章來源:http://www.zghlxwxcb.cn/news/detail-625949.html
Host bitbucket.org
AddKeysToAgent yes
IdentityFile ~/.ssh/bitbucket2
Hostname altssh.bitbucket.org
Port 443
最后兩句是關(guān)鍵。文章來源地址http://www.zghlxwxcb.cn/news/detail-625949.html
到了這里,關(guān)于bitbucket ssh登錄提示 port 22: Operation timed out的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!