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.

Cisco ASA SCP broken

See original GitHub issue

Trying to scp an image to asa and encountering an issue, the image is being uploaded successfully but netmiko throws an error, I’m guessing due to the new lfbff image doing additional checks. The lfbff and SPA indicates it has FirePower IPS included in the image and this image is digitally signed which makes it tamper resistant, below is an output of a successful file transfer and it’s output:

`…[removed]asa992-32-lfbff-k8.SPA…!!!


!!! Verifying file disk0:/asa992-32-lfbff-k8.SPA… Computed Hash SHA2: d9b83d16cd493a213def1ec238f8e699 c908a0b4383e86fd09228635fe545f5a 76f8098392a0618e54e5724aa09ceb97 da5d46679d75784d7e785e5659e73d64

Embedded Hash SHA2: d9b83d16cd493a213def1ec238f8e699 c908a0b4383e86fd09228635fe545f5a 76f8098392a0618e54e5724aa09ceb97 da5d46679d75784d7e785e5659e73d64

Digital signature successfully validated

Writing file disk0:/asa992-32-lfbff-k8.SPA…

111505136 bytes copied in 391.310 secs (285179 bytes/sec)`

Netmiko throws below error after successfully uploading the file:

Copying: asa992-32-lfbff-k8.SPA to: MUCAZ-ASA5516-01: 100%|##########| 112M/112M [48:15<00:00, 48.8kb/s] Traceback (most recent call last): File "asa.py", line 332, in <module> device.upgrade() File "asa.py", line 310, in upgrade self.copy_with_progress() File "asa.py", line 242, in copy_with_progress self.ft.scp_client.put(source, dest) File "/Library/Python/2.7/site-packages/scp.py", line 154, in put self._send_files(files) File "/Library/Python/2.7/site-packages/scp.py", line 250, in _send_files self._send_file(fl, name, mode, size) File "/Library/Python/2.7/site-packages/scp.py", line 276, in _send_file self._recv_confirm() File "/Library/Python/2.7/site-packages/scp.py", line 349, in _recv_confirm raise SCPException('Invalid response from server', msg) scp.SCPException: ('Invalid response from server', 'Computed Hash SHA2: d9b83d16cd493a213def1ec238f8e699\r\n c908a0b4383e86fd09228635fe545f5a\r\n 76f8098392a0618e54e5724aa09ceb97\r\n da5d46679d75784d7e785e5659e73d64\r\n \r\nEmbedded Hash SHA2: d9b83d16cd493a213def1ec238f8e699\r\n c908a0b4383e86fd09228635fe545f5a\r\n 76f8098392a0618e54e5724aa09ceb97\r\n da5d46679d75784d7e785e5659e73d64\r\n \r\n\r\nDigital signat')

I’m guessing the output is not expected in netmiko logic.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
eakikelcommented, Aug 1, 2019

I think this is the same as my bug dealing with Arista SCP.py times out too quickly on Secure Copy of large files

1reaction
carlmontanaricommented, Jul 18, 2019

@tonypnode that’d be great if you have access to a recent ASA/version! I think from what @edurguti posted and said in Slack its just having a bad day at checking the checksum once the files copy over, but I haven’t looked too closely. If you dig in and run into any issues feel free to bug us and we can try to help! (here or on Slack)

Read more comments on GitHub >

github_iconTop Results From Across the Web

ASA secure copy (scp) from unix not working - Cisco Community
I am trying (unsuccessfully) to scp a file from a unix/linux device to an ASA 5505. The connection is authenticated on the 5505...
Read more >
SCP copy of new IOS to ISR 4431 fails - Cisco Community
Solved: I'm trying to upgrade a new ISR 4431 from 3.16.6 to 16.9.2. When I copy the file from my SolarWinds SCP server,...
Read more >
CLI Book 1: Cisco ASA Series General Operations CLI ...
CLI Book 1: Cisco ASA Series General Operations CLI Configuration Guide, 9.1 ... You can enable the secure copy (SCP) server on the...
Read more >
Cisco ASA Series General Operations CLI Configuration ...
Obtain the new ROMMON image from Cisco.com, and put it on a server to copy to the ASA. The ASA supports FTP, TFTP,...
Read more >
ASA SSH config options for addressing slow SCP copy to ASA
Last Modified. Mar 12, 2021 ; Products (1). Cisco Adaptive Security Appliance (ASA) Software ; Known Affected Release. 9.6(1) ...
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