容器下载的是centos8的镜像,scp出现packet_write_wait: Connection to **** port 22: Broken pipe 问题解决

解决方案:在~/.ssh目录新建文件config

    vi ~/.ssh/config
     
    #Added lines to fix.
    Host *
    IPQoS lowdelay throughput
    #end of new file edit

到这里如果不更改权限会出现一个问题

Bad owner or permissions on /home/xin/.ssh/config
解决办法也很简单

chmod 644 ~/.ssh/config

到这里,这个问题已经ok了。

猜你喜欢

转载自www.cnblogs.com/xingyunfashi/p/11724039.html