Also what's the source OS, and SFTP client?
Main Topics
Browse All TopicsHi Experts, I would like to create a scheduled script to copy a file or multiple files from an internal share directory to a remote SFTP server with username and password. I would then like to archive the original file to empty the directory.
Can anyone help please?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi
In which case you'll probably want to:
1) Download the stand alone putty install (http://www.chiark.greenen
2) Then per KeremE suggestion, and assuming the remote SFTP server supports key based authentication, generate a few keys. Use PuttyGen to generate and SAVE a Private DSA key file, and cut and paste the public key displayed on screen, into Notepad, and save the public key to a file by the name "authorized_keys".
3) Transfer the authorized_keys file to the remote server, into a .ssh directory, off the home directory, and make sure the directory is only accessible by the FTP user.
4) Test connectivity by attempting to connect with your private key file, rather than password.
5) Create a DOS / psftp (C:\Program Files\putty\psftp) batch script, that does what you want.
6) Test the batch script
7) Schedule the batch script, via the Control Panel.
Business Accounts
Answer for Membership
by: KeremEPosted on 2009-08-17 at 02:58:17ID: 25112777
Hi,
e.com/arti cles/OS/Li nux/SSH-ac cess- using -public-ke y.html
First of all to submit passwords interactively you can use Expect. But this is not very desirable because you have to put your password in the script as clear text.
I'll suggest you to use Public Key instead of password. In this way you can directly issue sftp commands.
Please follow this link to create Public-Key then I'll suggest you to use SFTP or SCP
http://www.experts-exchang
Cheers,
K