netmiko: FileTransfer - ProxyCommandFailure
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.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (9 by maintainers)
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.
Thanks Kirk for your time. Just before you close out this, do you see by any chance this in your support plan ?
Netmiko Works.