美文网首页
scp或sftp stalled问题解决

scp或sftp stalled问题解决

作者: 曦然0o0 | 来源:发表于2019-05-28 10:58 被阅读0次

原因:两端MTU值不同,修改至相同即可

windows 下查看mtu命令:netsh interface ipv4 show subinterfaces

windows 下修改mtu命令:netsh interface ipv4 set subinterface "本地连接" mtu=1480 store=persistent

linux 下查看mtu命令: ifconfig

1、ifconfig命令修改: ifconfig eth1 mtu 9000 up

2、修改配置文件

CentOS / RHEL / Fedora Linux下

# vi /etc/sysconfig/network-scripts/ifcfg-eth0

#增加如下内容

MTU="9000"

#保存后重启网卡生效

# service network restart

#启用IPv6地址的,修改IPv6 mtu的参数为

IPV6_MTU="1280"

Debian / Ubuntu Linux下

# vi /etc/network/interfaces

#增加如下值

mtu 9000

#保存后,重启网络生效

# /etc/init.d/networking restart

相关文章

网友评论

      本文标题:scp或sftp stalled问题解决

      本文链接:https://www.haomeiwen.com/subject/vhertctx.html