Re: Command to copy files/folders from linux to windows share
- From: turtle <dkaloustian@xxxxxxxxx>
- Date: Tue, 1 Dec 2009 11:21:13 -0800 (PST)
On Dec 1, 10:06 am, George Orwell <nob...@xxxxxxxxxxxx> wrote:
"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 fromhttp://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
Thanks for the response. I have attempted to research a different
route and may have found something that could work. I could mount the
Windows share and use the cp command to copy whatever I need. I have
been doing some testing and got it to work on my my computer with a
local account but I would have to autheticate to the share using
Active Directory credentials. Is that possible to mount the share
this way? The thing is with this situation, I don't manage the file
server that the share is on so I cannot manipulate anything on that
end.
Thanks
.
- References:
- Command to copy files/folders from linux to windows share
- From: turtle
- Re: Command to copy files/folders from linux to windows share
- From: George Orwell
- Command to copy files/folders from linux to windows share
- Prev by Date: Alternative way to keep the terminal free
- Next by Date: Re: comp.os.linux.misc = mountains of Spam
- Previous by thread: Re: Command to copy files/folders from linux to windows share
- Next by thread: Hey guys check this out!
- Index(es):
Relevant Pages
|