SFTP: Difference between revisions

337 bytes added ,  22:14, 25 February 2013
Added extra details about creating the text script and calling batch file
No edit summary
(Added extra details about creating the text script and calling batch file)
Line 25: Line 25:
*change /remotepath to the remote path on the web server (as seen when you SFTP to the web site)
*change /remotepath to the remote path on the web server (as seen when you SFTP to the web site)


Save the commands in a text file, let's use the filename "C:\Cumulus\sftp-cmds.txt" as an example.


Now create a batch file with the following contents:


After creating the batch file with the commands in it, configure Cumulus to call it at each web update interval (using the 'external program' settings on the Internet Settings screen). If you don't supply an ftp host name to Cumulus, it will create the updated web files locally but not attempt to ftp them itself.
winscp.com /script=c:\cumulus\sftp-cmds.txt
 
Save this batch file, let's use the file name "C:\cumulus\sftp.bat" as an example.
 
After creating the batch file, configure Cumulus to call it at each web update interval (using the 'external program' settings on the Internet Settings screen). For this example, the external program would be set to "c:\cumulus\sftp.bat".
 
If you don't supply an ftp host name to Cumulus, it will create the updated web files locally but not attempt to ftp them itself.


Note that there are (at least) two different secure FTP protocols, SFTP (SSH FTP) and FTPS (FTP over SSL). WinSCP supports both, but you'll need to make sure you're using the correct one for your server.  
Note that there are (at least) two different secure FTP protocols, SFTP (SSH FTP) and FTPS (FTP over SSL). WinSCP supports both, but you'll need to make sure you're using the correct one for your server.