Re: Command to copy files/folders from linux to windows share



"t" =3D=3D turtle <dkaloust...@xxxxxxxxx>:
t> I only have access to ssh to a Linux server and \\ to a Windows
t> file server, what I need to be able to do it copy files from the linux
t> server to the windows file server via a bash command.

See if you can install an FTP and/or SSH daemon on the Windows box.
(freeSSHd/freeFTPd are available from http://www.freesshd.com)

Install ftpd as a system service, add anonymous user "anon" for FTP
service; if service's root dir is C:\temp then your files will live in
C:\temp\anon.

Install sshd as a system service, add user "user1", copy user1's ssh
public key to file "user1" in sshd's configuration directory
(C:\Program Files\freeSSHd\user1).

Now all your file transfers can be initiated from the command line on
your linux server (eg. with wput and scp), or any other linux/unix box
on the same LAN for that matter. No need for the Windows GUI
environment and it can all be scripted. Use ssh from a linux box to
access a DOS console on the Windows box and COPY or MOVE files to
directories other than the anon user's directory.

File redirections and pipes don't work very well on the Windows boxes,
try to avoid them.


Il mittente di questo messaggio|The sender address of this
non corrisponde ad un utente |message is not related to a real
reale ma all'indirizzo fittizio|person but to a fake address of an
di un sistema anonimizzatore |anonymous system
Per maggiori informazioni |For more info
https://www.mixmaster.it
.


Quantcast