darkoperator / darkoperator/Posh-SSH
Error with SCP for mikrotik
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 1.1k
- Forks
- 222
- PR merge metrics
- No merged PRs in 30d
Description
I can not use Set-SCPFile for mikrotik. We can not use / file path with mikrotik and scp.
This code work as expected:
scp csm.nov.ru.*.rsc username@192.168.88.1:
but there is my problem, i think: https://github.com/darkoperator/Posh-SSH/blob/927726685fe9228a79fcaacddaaf5b4576ed539e/Source/PoshSSH/PoshSSH/SetScpFile.cs#L434
My be:
var remoteFullpath = RemotePath + fil.Name;
???
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 Source/PoshSSH/PoshSSH/SetScpFile.cs around line 434 and inspect how the remote path is assembled for Set-SCPFile. Reproduce the transfer against a MikroTik device and compare it with the working scp command; done means a remote root-path transfer succeeds without introducing the unsupported slash.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- devops, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100