SCP files to and from Cisco ASA
I needed to copy some file over SSH to a Cisco ASA appliance, but ran in the SCP error on the bottom of the page which was not an easy to find solution.
Copy a file to the ASA
Replace or remove disk0
with another directory if you need to.
Copy a file from the ASA
Replace or remove disk0
with another directory if you need to.
Original SCP protocol
If your SCP command fails with
Then you need to run the SCP commands with the-O
flag added. To force the use of the original SCP protocol instead of SFTP.
From the linux man page:
-O Use the legacy SCP protocol for file transfers instead of the SFTP protocol. Forcing the use of the SCP protocol may be necessary for servers that do not implement SFTP, for backwards-compatibility for particular filename wildcard patterns and for expanding paths with a ‘~’ prefix for older SFTP servers.