Hello Team -
We have setup file server on serv-u mft. we want to poll for files uploaded to MFT server by our business users and access/copy/delete them from linux machine. we have tried sftp and sshpass. Both are working, with password given in the command line. We dont want to store our password on file or expose it in command line. Our goal is to securely connect to mft server and poll for new files and programmatically access/copy/delete them. Has any body did it already or any points to do so would be greatly appreciated.
the sample command we are using is
sshpass -f /tmp/password_file.txt sftp user_id@file-server-ip:/folder/filename targetLocation/
Thanks,
Murali