Quantcast
Channel: SSH.NET Library
Viewing all articles
Browse latest Browse all 2955

New Post: SCP Upload to Cisco Firewall

$
0
0
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.Connect()

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

                scp.Disconnect()
            End Using
I am able to upload and maintain the file name when using PSCP. TIA!

Viewing all articles
Browse latest Browse all 2955

Trending Articles