scp连接缓慢的解决方法

时间:2026-02-15 10:48:13

1、在网上搜索了一下资料,导致这个问题的主要原因是GSSAPI认证。用scp -v username@host:file file这个命令时可以购速看到GSS这个墨付茄过程耗时比较长。解决办法有两个。

scp连接缓慢的解决方法

2、用scp时加上-o GSSAPIAuthentication=no这个参数,惹译如, scp scp  -o GSSAPIAuthentication=no username@host:file file

scp连接缓慢的解决方法

3、在$HOME/.ssh/config这个文件中加入下面这行参数。

GSSAPIAuthentication no

如图。

scp连接缓慢的解决方法

© 2026 五度知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com