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