question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Set-SCPItem hard lock on macOS

See original GitHub issue

Running 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:open
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MVKozlovcommented, Feb 16, 2022

to be sure, try using scp, like scp -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…

0reactions
MVKozlovcommented, Feb 16, 2022

Yes, setting the file time hardcoded in SSH.NET library, so SFTP is only solution for now

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found