Set-SCPItem hard lock on macOS
See original GitHub issueRunning macOS 10.15.7 with PowerShell 7.2.1 and Posh-SSH 3.0.0
When I invoke Set-SCPItem -ComputerName "SCPhost.FQDN" -Credential username /sourcepath/to/file -Destination /
, I am prompted for credentials, then pwsh locks up hard: ctrl-c, soft and hard resets don’t get the prompt back. Only way to reset is to kill the pwsh process.
The destination is a Windows-based SolarWinds SFTP/SCP server. The file is getting created, with a programatic name (1944953288 0
and repeated attempts generate more files with the same name, followed by _%date%_%time%
) but left open at 0K.
Am I doing something wrong?
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Change security settings on the startup disk of a Mac with ...
Select the system you want to use to set the security policy. If the disk is encrypted with FileVault, click Unlock, enter the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
to be sure, try using
scp
, likescp -p /path/to/filename username@hostname
The-p
switch tells the server to save file times if the command also blocks, then it’s the same reason…Yes, setting the file time hardcoded in
SSH.NET
library, so SFTP is only solution for now