Re: Detect a file upload, can I?

From: Nico Kadel-Garcia (nkadel@bellatlantic.net)
Date: 10/29/02


From: "Nico Kadel-Garcia" <nkadel@bellatlantic.net>
Date: Tue, 29 Oct 2002 14:45:13 GMT


"Brian" <tobrian@email.com> wrote in message
news:9efa349a.0210290206.3a1d6509@posting.google.com...
> Hi. Sorry for the Newbie ignorance. I have never installed an SSH or
> SFTP server before, but I'm looking for a solution to a problem. We
> use Windows 2000. A client wants to upload a file to us daily. They
> are not very sophisticated and wanted to just use a scheduled batch
> file in Windows to ftp the file to us. We want to detect the file
> upload and start the application that processes it. If I install an
> sftp server on our end and point them to an sftp client, could I do
> this simply? I suppose I could write an application to poll the
> directory for new files, but I would rather the server detect the
> upload and start the application. Is this possible?
>
> Thanks in advance for any tips and information you can spare for me.

Cygwin at www.cygwin.com has SSH support. This can be done.

However, for an automated upload like this, you might be better off doing a
*pull* from his webserver or ftpserver rather than a push. rsync over SSH
might be even better, to avoid transferring files that are already present.
A scheduled job to check for changes in that repository, or for a flag file,
should complete the process.

There's no need for sftp: this can be done via ssh or via rsync over ssh.



Relevant Pages

  • RE: Query on Open SSH (SFTP Server: Multihomed)
    ... I have added multiple IP address in the sshd_config and able to do ssh operation with virtual IP. ... Similarly can any one please let me know Open SSH (SFTP server) will support multihomed option? ...
    (SSH)
  • Re: Enabling SSH only for ftp (not for telnet possible) ?
    ... Just run a sftp server, and it will allow secure ftp connections useing ... However it is often said that granting SSH access is a security risk for telnet. ... I thought I could grant SSH to a user for only his ftp connections. ...
    (comp.security.ssh)
  • Different PAM modules for ssh and sftp on Solaris?
    ... Is it possible to use different PAM modules for ssh and sftp? ... For example, to use pam_roles.so.1 for account for ssh, but use pam_unix_account.so.1 for sftp? ... To my understanding, sftp server is only a subsystem of ssh server, it's not likely that they can be separated, but maybe I am wrong... ...
    (SSH)
  • Re: Blocking Yahoo Messenger With Firewall??
    ... Why are you insulting me? ... I have enumerated the conditions associated with SSH use for this ... >> data stream, as I stated above. ... or if you try to install extra software. ...
    (alt.computer.security)
  • Re: [Full-Disclosure] Psexec on *NIX
    ... Have you considered creating one dedicated windows machine with SSHd ... and psexec installed and using it as a jumpbox? ... Why would I install ... CC> and run an ssh daemon just to use it to run another program, ...
    (Full-Disclosure)