Downloading file from sftp

Hi,
I have to download a file from SFTP (using pvt-pub key pair). I have been exploring few options, but not having a good luck in that process. I am also exploring winscp commands.. Basically I have installed pub cert on sftp server. I need to use port 22, username, server name, pass phrase to connect to sftp server and download the file. Anything in powershell would also do

Regards,
Anup
anupam1983Asked:
Who is Participating?
 
Bill PrewConnect With a Mentor Commented:
You might take a look at WinSCP, it has integration support for Powershell and a decent number of examples exist to build off of.



»bp
0
 
Travis MartinezSmoke JumperCommented:
FileZilla doesn't work?  I may be misunderstanding the question...
0
 
anupam1983Author Commented:
Gui version of filezilla works.. but i need to code this process to automate the periodic download
0
Worried about phishing attacks?

90% of attacks start with a phish. It’s critical that IT admins and MSSPs have the right security in place to protect their end users from these phishing attacks. Check out our latest feature brief for tips and tricks to keep your employees off a hackers line!

 
Travis MartinezConnect With a Mentor Smoke JumperCommented:
You can run FileZilla from the command line:

https://wiki.filezilla-project.org/Command-line_arguments_(Client)
0
 
Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
there is nothing built-in Powershell. You will need the help of some 3rd party. have a look at https://stackoverflow.com/questions/38732025/upload-file-to-sftp-using-powershell
0
 
Travis MartinezSmoke JumperCommented:
But yes that does open the window; however, you can close all open windows with a separate command.
0
 
anupam1983Author Commented:
Apologies for delayed response. If I use winSCP, where/how do I mention passphrase while sending the request to SFTP server?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.