Automatic transfert from windows to unix machine

Hello, I am looking for an easy way to set up automatic file transfert from windows to unix machine
Williams225System AdministatorAsked:
Who is Participating?
 
TomuniqueConnect With a Mentor Commented:
install putty on your windows machine
run puttygen to build a set of public/private keys
save public key on your unix machine's userid in it's $HOME/.ssh/authorized_keys file
   Perms become picky here... ensure all directoires from / all the way to the .ssh directory do NOT have write perms for group or other. (same with authorized_keys file).


on windows box, run

pscp  c:\windowspath\file   unixuserid@unixhostnameorip:/unixpath/to/savethefile

Using ssh-keys are far more secure than any password solution.
99% of the other solutions are going to have you store a clear-text password in a script.
using ssh-keys you do need to protect your private key, but, the public key could be posted on the internet, nobody can use it without the private counter-part.

Tom

0
 
Neil RussellTechnical Development LeadCommented:
Define Automatic? Hourly? Weekly? When files change? please expand

rdist
0
 
Williams225System AdministatorAuthor Commented:
daily
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
Williams225System AdministatorAuthor Commented:
sorry  automatic :when files changes (updates...)
0
 
RingthaneConnect With a Mentor Commented:
I use the following:

1) Perl script on Windows (looping, sleeping 60 secs) checking for modified files. If so, copy it to a directory on a Unix system using FTP for a restricted user.

2) Perl script on Unix (started by cron, every minute) checking if files arrived in the directory, if so copy them to the right spot.
0
 
Williams225System AdministatorAuthor Commented:
can you post the script please
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.