Posh-SSH
Posh-SSH copied to clipboard
Set-SCPItem "expected control message"
While trying to upload a test.txt file to the sftp server we are getting the error Set-SCPItem : /Import: expected control message At line:1 char:1
- Set-SCPItem -ComputerName $connection -Credential $credential
-
+ CategoryInfo : OperationStopped: (Renci.SshNet.ScpClient:ScpClient) [Set-SCPItem], ScpException + FullyQualifiedErrorId : SSH.SetScpItem
confused, you say SFTP but the command is SCP, those are 2 different protocols over SSH. What is the target server running? did you tested with the scp command to see if the protocol is enabled? I know not all Linux distros install support with everything for SSH (Example CentOS minimal does not include SFTP by default)