Re: Automate SFTP



joseph.shameem@xxxxxxxxx wrote:
Hi,

I need to automate SFTP. I tried using the batch file and it works.
The trick here is the file name can change daily and i would need to
SFTP them as well. Is there any way of passing the file name as a key/
value pair to the sftp session. There is an option of getting a file
in the command line itself.

I have a similar issue when trying to use sftpg3(Tectia Client). Can
someone please help me in guiding to automate these sftp scripts.

Thanks,
JS

scp is probably what you want:

scp somefile someuser@remote_host:/path/to/where/you/want/file/put

Using a pair of keys, with no passsphrase, automation is then trivual
.



Relevant Pages

  • Re: Novice needs help using Expect to automate sftp
    ... I now need to automate the sftp process. ... Looking at the autoexpect file, ...
    (comp.unix.shell)
  • Re: Automate SFTP
    ... I need to automate SFTP. ... I tried using the batch file and it works. ... The trick here is the file name can change daily and i would need to ...
    (comp.security.ssh)
  • Automate SFTP
    ... I need to automate SFTP. ... I tried using the batch file and it works. ... The trick here is the file name can change daily and i would need to ...
    (comp.security.ssh)
  • Automate SFTP
    ... I need to automate SFTP. ... I tried using the batch file and it works. ... The trick here is the file name can change daily and i would need to ...
    (comp.security.ssh)
  • Re: Automate SFTP
    ... I need to automate SFTP. ... I tried using the batch file and it works. ... The trick here is the file name can change daily and i would need to ...
    (comp.security.ssh)