Connecting to SFTP through PowerShell

Advertisement

ryu_1337
Joined:
Posts:
1
Location:
The Netherlands

Connecting to SFTP through PowerShell

Hi All,

We are rewriting our SFTP push script from .bat to .ps1.

However, we want to "encrypt"/secure our authentication. At the moment we have blank passwords in the script like:
    "open sftp://username:password@sftpName:port/ -hostkey=`"`"ssh-ed25519 fingerprint`"`""
We have tried doing saving the site then opening it:
    "open sftpSitename" `
    "put D:\file\* /filearea/outbound/" `
    "exit"
But it isn't able to find the site. We are also OK with using a credential.xml.

Has anyone been able to get to work?

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum