question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FileTransfer - ProxyCommandFailure

See original GitHub issue

Hi 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:closed
  • Created 5 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
ktbyerscommented, Dec 12, 2018

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’

1reaction
usunnapucommented, Dec 12, 2018

Will do. Closing this issue now.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found