我正在尝试通过ssh使用SSH-RSA公钥来复制一些文件。 我已经接受了我的服务器的主机密钥,反之亦然,所以密钥是同步的。 现在我尝试通过SSH连接到主机,我成功了,但是如果我在某些文件夹中input“ls”,它会冻结。 另外我尝试做一个scp请求如下:
scp -v username@host_ip:/folder/folder1/file.txt /home/user/Desktop
我得到这个答案:
OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to <ip_host> [<ip_host>] port 22. debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: Host '<ip_host>' is known and matches the RSA host key. debug1: ssh_rsa_verify: signature correct debug1: Authentication succeeded (publickey). debug1: channel 0: new [client-session] debug1: Entering interactive session. debug1: Sending environment. debug1: Sending env LANG = fr_FR.UTF-8 debug1: Sending command: scp -v -f /folder/folder1/file.txt Sending file modes: C0664 3352 file.txt Sink: C0664 3352 file.txt file.txt 0% 0 0.0KB/s --:-- ETA^ file.txt 0% 0 0.0KB/s - stalled -^
我已经search,我试图将MTU从1500改为1492,但没有任何改变。 有没有人有什么线索可能发生? 非常感谢。
通过将MTU从我的界面中的默认1500降低到1470以下的值来解决问题。
修复RHEL环境中的MTU(我的是):
编辑/ etc / sysconfig / network-scripts / ifcfg-eth0:
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
添加MTU,设置:
MTU="1452"
保存并closures文件。 重新启动networking:
# service network restart