1.sftp IP 报‘Recieved message too long’
解决方法:
DEBUG:paramiko.transport:[chan 2] Max packet in: 34816 bytes
DEBUG:paramiko.transport:[chan 2] Max packet out: 32768 bytes
INFO:paramiko.transport:Secsh channel 2 opened.
DEBUG:paramiko.transport:[chan 2] Sesch channel 2 request ok
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/fabric/main.py", line 743, in main
*args, **kwargs
File "/usr/lib/python2.7/dist-packages/fabric/tasks.py", line 368, in execute
multiprocessing
File "/usr/lib/python2.7/dist-packages/fabric/tasks.py", line 264, in _execute
return task.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/fabric/tasks.py", line 171, in run
return self.wrapped(*args, **kwargs)
File "/opt/deploy/tools/fabfile.py", line 165, in install_jdk
put("./project/jdk1.7.0_45.tar.gz","/usr/local")
File "/usr/lib/python2.7/dist-packages/fabric/network.py", line 639, in host_prompting_wrapper
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/fabric/operations.py", line 346, in put
ftp = SFTP(env.host_string)
File "/usr/lib/python2.7/dist-packages/fabric/sftp.py", line 30, in __init__
self.ftp = connections[host_string].open_sftp()
File "/usr/lib/python2.7/dist-packages/paramiko/client.py", line 414, in open_sftp
return self._transport.open_sftp_client()
File "/usr/lib/python2.7/dist-packages/paramiko/transport.py", line 846, in open_sftp_client
return SFTPClient.from_transport(self)
File "/usr/lib/python2.7/dist-packages/paramiko/sftp_client.py", line 106, in from_transport
return cls(chan)
File "/usr/lib/python2.7/dist-packages/paramiko/sftp_client.py", line 87, in __init__
server_version = self._send_version()
File "/usr/lib/python2.7/dist-packages/paramiko/sftp.py", line 108, in _send_version
t, data = self._read_packet()
File "/usr/lib/python2.7/dist-packages/paramiko/sftp.py", line 179, in _read_packet
raise SFTPError('Garbage packet received')
paramiko.SFTPError: Garbage packet received
注释掉/bin/bashrc里的cat,echo选项。
阅读(8068) | 评论(2) | 转发(0) |