FileTransfer - ProxyCommandFailure
See original GitHub issueHi Kirk,
I have written a automation taking asa_upgrade as a reference. While doing a file copy from source (linux OS) to cisco asa, I can see the file is copied but the log file is filled with messages as below
Instead of directly connecting to the switch, I am using a proxy file which contains information about the jump host, ip address etc.
ERROR:paramiko.transport:Exception: ('ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no <user>@<linux host> nc 192.168.100.100 22', 'Broken pipe')
ERROR:paramiko.transport:Traceback (most recent call last):
ERROR:paramiko.transport: File "<workspace>/runtime/lib/python2.7/site-packages/paramiko/transport.py", line 1766, in run
ERROR:paramiko.transport: self._channel_handler_table[ptype](chan, m)
ERROR:paramiko.transport: File "<workspace>/runtime/lib/python2.7/site-packages/paramiko/channel.py", line 1065, in _handle_close
ERROR:paramiko.transport: self.transport._send_user_message(m)
ERROR:paramiko.transport: File "<workspace>/runtime/lib/python2.7/site-packages/paramiko/transport.py", line 1586, in _send_user_message
ERROR:paramiko.transport: self._send_message(data)
ERROR:paramiko.transport: File "<workspace>/runtime/lib/python2.7/site-packages/paramiko/transport.py", line 1566, in _send_message
ERROR:paramiko.transport: self.packetizer.send_message(data)
ERROR:paramiko.transport: File "<workspace>/runtime/lib/python2.7/site-packages/paramiko/packet.py", line 364, in send_message
ERROR:paramiko.transport: self.write_all(out)
ERROR:paramiko.transport: File "<workspace>/runtime/lib/python2.7/site-packages/paramiko/packet.py", line 284, in write_all
ERROR:paramiko.transport: n = self.__socket.send(out)
ERROR:paramiko.transport: File "<workspace>/runtime/lib/python2.7/site-packages/paramiko/proxy.py", line 71, in send
ERROR:paramiko.transport: raise ProxyCommandFailure(' '.join(self.cmd), e.strerror)
any idea as to what might be causing this issue above.
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (9 by maintainers)
Top Results From Across the Web
Paramiko - Release
is used for data transfer. ... Channels are socket-like objects used for the actual transfer of ... ProxyCommandFailure(command, error).
Read more >"Error reading SSH protocol banner" when connecting to ...
Connecting to the server using WinSCP and Linux sftp command works. But paramiko fails to connect. The problem may be that the banner...
Read more >linux-audit - ansible2 - paramiko - transport.py
a socket or socket-like object to create the session over. 347. :param int default_window_size: 348.
Read more >paramiko proxycommand
Automate remote server tasks by using the Paramiko & SCP Python libraries. Use Python to SSH into hosts, execute tasks, transfer files, etc....
Read more >(福利局)putty pscp远程代码执行漏洞(CVE-2016-2563)
Channel>` are socket-like objects used for the actual transfer of data ... self.packetizer.readline(timeout) except ProxyCommandFailure: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If there is an easy way to bind the Secure Copy transfer to the SSH config file and consequently the SSH proxy, I would be totally open to it.
I really haven’t looked at it (much).
I will open an issue on it so it is at least tracked as an ‘enhancement’
Will do. Closing this issue now.