Posh-SSH icon indicating copy to clipboard operation
Posh-SSH copied to clipboard

Set-SCPItem "expected control message"

Open tankcr opened this issue 3 years ago • 1 comments

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
    

tankcr avatar Aug 23 '22 20:08 tankcr

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)

darkoperator avatar Sep 06 '22 20:09 darkoperator