darkoperator / darkoperator/Posh-SSH
Error on SCP copying from HP ProCurve Switch
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 1.1k
- Forks
- 222
- PR merge metrics
- No merged PRs in 30d
Description
I'm unable to run Get-SCPFile on an HP ProCurve Switch. The command I use with a working pscp.exe -based bash script is:
pscp.exe -scp manager@A.B.C.D:/cfg/running-config switch.conf
PS C:\script> Get-SCPFile -ComputerName A.B.C.D -Credential (Get-Credential manager) -LocalFile "C:\tftp\switch.conf" -RemoteFile "/cfg/running-config" -Force -Verbose
VERBOSE: Using SSH Username and Password authentication for connection.
WARNING: Host key for A.B.C.D is not being verified since Force switch is used.
VERBOSE: Connection successful
VERBOSE: Downloading /cfg/running-config
Get-SCPFile : scp: "/cfg/running-config": No such file or directory
At line:1 char:1
+ Get-SCPFile -ComputerName A.B.C.D -Credential (Get-Credential m ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Renci.SshNet.ScpClient:ScpClient) [Get-SCPFile], ScpException
+ FullyQualifiedErrorId : SSH.GetScpFile
Why is it working with pcsp.exe but not Powershell?
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 with the Get-SCPFile entry point and compare its behavior with the working pscp.exe command shown in the issue. Investigate how the remote path /cfg/running-config is handled, then verify that Get-SCPFile can retrieve it from the HP ProCurve Switch without the reported no-such-file error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100