SFTP: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m (fixed a few typos)
m (Grammar & spelling)
Line 1: Line 1:
Many ISP's now only support [http://en.wikipedia.org/wiki/Simple_File_Transfer_Protocol SFTP] due to the open, unsecure nature of standard FTP  
Many ISPs now only support [http://en.wikipedia.org/wiki/Simple_File_Transfer_Protocol SFTP] due to the open, unsecure nature of standard FTP  


As Cumulus does not currently support SFTP an external SFTP application must be used
As Cumulus does not currently support SFTP an external SFTP application must be used
Line 7: Line 7:
Looking at http://winscp.net/eng/docs/script_upload_single_file, winSCP can be used to script SFTP  
Looking at http://winscp.net/eng/docs/script_upload_single_file, winSCP can be used to script SFTP  


You have to run it by hand once, to allow the SSH key to be trusted, then it works on it's own
You have to run it by hand once, to allow the SSH key to be trusted, then it works on its own


The following script works well
The following script works well
Line 17: Line 17:




*change User:pass@server to your username , password and server name combination
*change User:pass@server to your username, password and server name combination


*change localpath\realtime.txt to the local path on you PC
*change localpath\realtime.txt to the local path on your PC


*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)

Revision as of 00:57, 2 February 2010

Many ISPs now only support SFTP due to the open, unsecure nature of standard FTP

As Cumulus does not currently support SFTP an external SFTP application must be used

WINSCP can be used

Looking at http://winscp.net/eng/docs/script_upload_single_file, winSCP can be used to script SFTP

You have to run it by hand once, to allow the SSH key to be trusted, then it works on its own

The following script works well

option batch abort
option confirm off
open User:pass@server
put "localpath\realtime.txt" /remotepath
exit


  • change User:pass@server to your username, password and server name combination
  • change localpath\realtime.txt to the local path on your PC
  • change /remotepath to the remote path on the web server (as seen when you SFTP to the web site)