This project is read-only.

SCP Upload to Cisco Firewall

Apr 1, 2013 at 8:47 PM
Hi There,
Excellent product thank you so much! So here's my issue. I am able to upload a file, but the problem is once it is uploaded the file is renamed so something strange like "scp_f8".

I know that Cisco ASA 5500 Firewalls do not have directory support, maybe that is the issue?

Here's my code:
            Using scp = New ScpClient(AppSettings("address"), AppSettings("port"), AppSettings("userName"), AppSettings("password"))

               scp.Upload(File.OpenRead("c:\FTP\testfilemay2.xml"), "testfilemay2.xml")

            End Using
I am able to upload and maintain the file name when using PSCP. TIA!
Apr 3, 2013 at 3:45 PM
My suspicion would be that Cisco implementation renames its file since there is nothing in the code that would do something like that.
I know that Cisco implement SSH differently and SCP protocol probably not an exception.

Try to use other software to SCP files and see if you experience similar behavior.

Hope it helps.

Apr 3, 2013 at 4:26 PM
Edited Apr 3, 2013 at 4:27 PM
When I use PSCP, I use this command and it maintains the file name:
pscp -pw PASSWORD testfilemay2.xml USERNAME@IPADDRESS:
I don't actually specify a filename to upload.

The is what Cisco has to say about SCP:
_ SCP is a server-only implementation; it will be able to accept and terminate connections for SCP but can not initiate them. The adaptive security appliance has the following restrictions:

•There is no directory support in this implementation of SCP, limiting remote client access to the adaptive security appliance internal files.

•There is no banner support when using SCP.

•SCP does not support wildcards.

•The adaptive security appliance license must have the VPN-3DES-AES feature to support SSH version 2 connections.

Before initiating the file transfer, the adaptive security appliance check available Flash memory. If there is not enough available space, the adaptive security appliance terminates the SCP connection. If you are overwriting a file in Flash memory, you still need to have enough free space for the file being copied to the adaptive security appliance. The SCP process copies the file to a temporary file first, then copies the temporary file over the file being replaced. If you do not have enough space in Flash to hold the file being copied and the file being overwritten, the adaptive security appliance terminates the SCP connection. _

Any ideas greatly appreciated! Thanks :)