How can i pull a file using SFTP in windows

Can any one suggest me how to start working in SFTP?(Any books/web sites)

I have to create a batch program to pull a file from a url using SFTP in windows.

I have no idea about SFTP.

A batch program which pulls the file from a url using FTP is already existing.

PLease find below for the commands used in the above existing batch program.

set PgpID=gecorpcard
set FtpID=ftp.corpcard.com
set FtpUser=xxxxxxx
set FtpPswd=xxxxxxx
set FtpMethod=binary
set FtpGetUser=xxxxxxx
set FtpGetUserPswd=xxxxxxx
set PgpKeyID=0x29A6A1F6 

Here the server name is psftppgp201.It means the file has to be uploaded into the server from the third party url.


Look at the Putty package, i am pretty sure there is a CLI sftp included in it that can be scripted.


Another SFTP and FTP client is WinSCP.


You are asking for SFTP advice, but rest of your question is about FTP. SFTP and FTP are completely different protocols.

Basically:

  • FTP is old, plain file transfer protocol. Passwords are sent unencrypted
  • FTPS (or FTP/SSL) is same FTP protocol run over TLS/SSL encrypted communication channel
  • SFTP stands for SSH File Transfer Protocol - a completely different beast. You can run SSH Shell or SCP over the same connection.

For details see http://www.rebex.net/kb/secure-ftp.aspx

FTP, FTP/SSL and SFTP clients for windows: I would try either Filezilla or WinScp. Both are multiplatform and work fine on Windows.