sftp报Received message too long 1114795883
来源:互联网 发布:剑三正太帅气捏脸数据 编辑:程序博客网 时间:2024/05/19 07:10
部件相关人员反映,使用sftp登入服务器时,报如下错误:
station90.example.com:~ # sftp dota@192.168.15.90
Connecting to 192.168.15.90...
Password:
Received message too long 1114795883
1、因只有dota用户存在这个问题,故怀疑是dota用户的环境设置问题,su – dota没有任何的输出,如果.cshrc,.bashrc,.profile文件中有一些cat,echo的输出,可能会导致这个问题,这是百度得到的答案,测试了下,确实是会出现这个问题,如下所示:
station90.example.com:~ # su - csh
haha
station90.example.com> echo $SHELL
/usr/bin/csh
station90.example.com> cat .cshrc
echo "haha"
station90.example.com> exit
logout
station90.example.com:~ # sftp csh@192.168.15.90
Connecting to 192.168.15.90...
Password:
Received message too long 1751214177
2、问题基本可以确定在sag的环境设置上是有问题的,因为sftp是ssh的子服务,scp也是,ssh是可以正常登入的,且不报错的,su也是可以正常切换的,那么scp呢
station90.example.com:~ # scp 1.txt dota@192.168.15.90:/home/dota
Password:
stty: standard input: Invalid argument
- txt 100%
3、问题基本可以确定了,设置的stty环境变量有问题
station90.example.com:~ # su - dota
<51 station90.example.com:/home/dota>echo $SHELL
/usr/bin/csh
<52 station90.example.com:/home/dota>cat .cshrc | grep stty
stty erase "^H" kill "^U" intr "^C" eof "^D" susp "^Z" hupcl ixon ixoff tabs
4、注释stty环境变量
<54 station90.example.com>cat .cshrc | grep stty
#stty erase "^H" kill "^U" intr "^C" eof "^D" susp "^Z" hupcl ixon ixoff tabs
5、测试表明,问题解决
station90.example.com:~ # scp 1.txt dota@192.168.15.90:/home/dota
Password:
1.txt 100% 0 0.0KB/s 00:00
station90.example.com:~ # sftp dota@192.168.15.90
Connecting to 192.168.15.90...
Password:
sftp>
参考文档:
http://www.snailbook.com/faq/sftp-corruption.auto.html
- sftp报Received message too long 1114795883
- sftp登录linux Received message too long (or "Bad packet length") 原因,已解决
- wget报File name too long
- ls报错: arguments too long
- udp引发的一起血案------message too long
- Impdp导入报queue_table too long失败解决方法
- 【Cocos2dx】Android编译报Argument list too long错误
- pl/sql报错:Identifier is too long
- vs2013 编辑资源文件报 RC2247 : SYMBOL name too long
- 【报错】BatchUpdateException: Data truncation: Data too long
- amq报错Channel was inactive for too (>30000)long
- pl/sql报错:Identifier is too long
- java long类型报错:error: integer number too large
- Long Long Message POJ
- POJ2774--Long Long Message
- poj2774 Long Long Message
- [PKU2774]Long Long Message
- 【poj2774】 Long Long Message
- myeclipse不编译解决方法
- 关于QT的pro文件编写及英文文档
- Struts中the request was rejected because its size (***) exceeds the configured ma
- 统计一串字符串中出现次数最多和次多的单词(华为上机考试题)
- 我看易信
- sftp报Received message too long 1114795883
- 8583报文详细分析
- 统计一个字符串中各个英文单词的出现的频数
- ActivityThread运行框架
- TCP/IP模型
- poj 3974
- POJ 1731 下一个全排列
- Oracle Shared pool 详解
- fraps原理