Jump to content
新域网络技术论坛
Sign in to follow this  
Jamers

FREEBSD中使用ssh方式git速度慢的原因及解决方式

Recommended Posts

使用FREEBSD的时候,使用SSH方式进行git操作的时候就经常30秒左右才有反应。经过ssh -v ip分析一直Dnslookup时候等回应,默认超时时间应该是30秒,所以就在这个环节等待30秒后继续处理后续动作,所以就慢了。

 

找到原因了,就去处理吧,首先,我们连接git服务器的时候是作为客户端的,所以sshd_config是不需要处理的。

 

ee /etc/ssh/ssh_config

#把下列参数设置上就OK了
VerifyHostKeyDNS no

这个参数就是说不较验服务器DNS,设置完成后再去git操作时就快如闪电了。

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...