-
-
Notifications
You must be signed in to change notification settings - Fork 940
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cisco compatible SCP #108
Comments
I've had the same problem with Cisco devices - would be nice to get a fix merged in. |
@cocowalla @bazauto |
Probably try with GNS3 if a device is not available, I will check my storage unit I may have an 800 there
…Sent from my iPhone
On Aug 20, 2017, at 7:03 PM, Gert Driesen ***@***.***> wrote:
@cocowalla @bazauto
Do you guys have a device that I can test a fix against?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I can setup a publicly accessible Cisco device, but it will be next week, if that is any use. |
@bazauto Yes, that would definitely be useful. Thanks! |
In PR #290 I've introduced a mechanism to disable path quoting, and at the same time we now allow for a custom quoting implementation to be plugged in. That PR (and the develop branch) also features a new default quoting implementation. Can you build SSH.NET from the scp-quoting branch and:
Please perform tests with both "regular" paths, and paths with spaces and special characters (#<>;%?'" ...). |
@bazauto best not to post credentials publically! You should probably delete your comment and send to @drieseng at gertdriesen@msn.com! |
@bazauto I removed your comment. You may want to modify the password, and send it to me privately. |
@drieseng I've changed the password and sent you the new details via e-mail. Clearly not thinking straight this morning. |
With the None remote path transformation that landed into the develop branch as part of PR #290, I was able to upload and download files that do not contain any special characters. As I mentioned in my email, I did not find a way to download or upload files from a path containing spaces. The Cisco router does not appear to support any quoting mechanism. Please reopen this issue if you have more information. |
I've just released version 2016.1.0-beta3 of SSH.NET, which includes a fix for this issue. |
I've been working with the Posh-SSH PowerShell module, which uses this library, to transfer files to/from Cisco devices via SCP. With the Cisco devices as the SCP server. Currently testing with a 2801 router running IOS 12.4(24)T1.
We also have newer routers running 15.4 but I have not had chance to test one of those yet.
I've found that the Cisco scp process interprets the quotes added around the filename as part of the filename. If I remove the quotes the file transfer works as expected.
I changed...
to ...
It is also worth noting, I'm using the stream based overrides as the Cisco scp process doesn't support the "-p, -r or -d" options.
Is this something you would consider adding compatibility for? Would you like me to propose a solution in a pull request?
The text was updated successfully, but these errors were encountered: