Copy files from windows to linux
Setting up a cron job to transfer files among linux boxes is easy. But when you mix some windows boxes into the picture, things get complicated. That is because most windows boxes don't have ssh daemon setup.
But one thing you can do is to run pscp on windows to fetch files from Linux. You can download pscp here http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
To get started you make a .bat file like this on your windows box: c:\path\to\pscp.exe –pw password username@host.of.linux:/path/to/file c:\path\to\destination
Then you use windows scheduler to schedule a task to run this batch file.
Of course to make it more secure (or just for the peace of mind) you want to hide your password, you can use a public/private key pair. For details reference this doc: http://www.tartarus.org/~simon/puttydoc/Chapter5.html
No comments:
Post a Comment