How to SSH FTP files through cron job from Solaris box to a Windows NT/2000 box
Posted on 2003-12-04
I need to use SSH in a shell script invoked from a cron job that is scheduled to run on daily basis.
I have a Solaris boxes that is required to run a cron job, which will execute a shell script on daily basis. This shell script needs to contain the code to run SSH, which will connect to a Windows box and transfer dynamically generated files from my Solaris box to the windows box.
I am then prompted for a password of the user@windows box, which I supply, and the command executes perfectly.
scp -d -p "$SOURCE" "$DEST"
I need to create a shell script that will run a SSH, the password prompt has to be by passed since the password may be changed from time to time.
I am not an expert in UNIX/SOLARIS, just know the basic commands of unix.
I wld require the examples for cron job, SHH FTP script and the settings on SOLARIS & WINDOWS boxes
Can anyone help me in this regard
Thanks in advance