Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BAT script to copy files from Windows to remote Linux systems

Is there anyway to copy files from Windows machine to a remote Linux machine with a DOS command/other command-line tool (by specifying username and password in the command). I normally do this using WinSCP and would like to write a script (BAT) to automate this.

like image 972
softwarematter Avatar asked May 28 '11 14:05

softwarematter


People also ask

How do I copy files from Windows to Unix?

Getting startedStart the program from the Windows Start menu (All Programs > WinSCP > WinSCP). In Host name, type one of the Linux servers (e.g. markka.it.helsinki.fi). In Username, type your username. In Password, type your password.


1 Answers

You could use the command line version of PuTTY, pscp.exe.

like image 51
Uwe Keim Avatar answered Oct 24 '22 20:10

Uwe Keim