darkoperator / darkoperator/Posh-SSH
Get-SCPItem : -p -r -d options not supported
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 1.1k
- Forks
- 222
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to SCP a file from a Cisco router but it seems like Get-SCPItem uses some switches that aren't supported by Cisco. I can SCP the files just fine using regular powershell scp commands. Those switches appear to be used for Recursive, Preserving Date/Times, etc... the files I'm trying to copy don't require any of those switches-- is there any way to disable those switches for Get-SCPItem?
Get-SCPItem $Device.IPAddress -Credential $Device.Credentials -KeyFile $Backup.Key -AcceptKey -Path ":running-config" -PathType File -Destination $Backup.Location -NewName $Device.BackupName
"Get-SCPItem : -p -r -d options not supported" is the error I get
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Get-SCPItem entry point and trace how its SCP options are assembled for file downloads. Compare the generated invocation with the Cisco-compatible command described in the issue. Done means Get-SCPItem can perform this file copy without the unsupported -p, -r, and -d options.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100