Copying contents of .NET build folder to Ubuntu server using Plink

后端 未结 1 486
温柔的废话
温柔的废话 2021-01-16 11:40

I\'m building a pre-deploy script in PowerShell that creates a production build of my .NET Core Web Api application and then SSHs into my Ubuntu Digital Ocean Droplet via SS

1条回答
  •  别那么骄傲
    2021-01-16 11:59

    It's quite strange to try to use plink to upload files to a server. As you didn't give any particular reason, why you want to use plink, I'm assuming that it's a mistake.

    You do not want to use plink. You want to use psftp or pscp (both part of the same PuTTY package as plink).

    pscp -r -i $SSHKeyLocation $projectBuildPath $linuxRemoteHost:/path/to/server/build-folder/
    

    0 讨论(0)
提交回复
热议问题