Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 305
  • Last Modified:

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
0
cismoney
Asked:
cismoney
2 Solutions
 
Neil RussellTechnical Development LeadCommented:
Define Automatic? Hourly? Weekly? When files change? please expand

rdist
0
 
cismoneyAuthor Commented:
daily
0
 
cismoneyAuthor Commented:
sorry  automatic :when files changes (updates...)
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
RingthaneCommented:
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
 
cismoneyAuthor Commented:
can you post the script please
0
 
TomuniqueCommented:
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

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now