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



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
.



Relevant Pages

  • Re: FC6 VPN
    ... Then you can run any application you would like off the server by simply running it, or if you want to run a whole session, use gnomesession. ... ssh client that supports X forwarding, which is want you want to be looking at. ... SSH allows you to forward any local port to any remote port. ... If you need to connect to, say a windows share, you would forward your local port to the linux server through the ssh tunnel. ...
    (Fedora)
  • Re: OpenSSH Windows Security
    ... SFTP is typically defined as using an SSH capable FTP client to connect ... It uses the "native" commands on the server to provide ... (does Tuxcmd have a Windows port)? ...
    (alt.computer.security)
  • Re: OT: Open Source Citrix?
    ... session over an SSH tunnel. ... the massive performance hit it will inevitably lay on your PC. ... use it to access my Linux server over a 1.5/1 Mb/s ... very un-fond memories of windows x-servers. ...
    (uk.rec.motorcycles)
  • Re: Quick question | Hummingbird Connectivity Secure Shell Version 12.00
    ... our windows servers so that we can use SSH to login / sftp etc. ... Now I am almost sure that "Hummingbird Connectivity Secure Shell ... Version 12.00" is a client software to connect to an SSH server and is ...
    (comp.security.ssh)
  • Re: Re(2): Re(2): FTP security on *nix
    ... Subject: Re: Re: FTP security on *nix ... Since I am helping a non-profit organization out and for now only use the SSH things for them and not for a commercial opportunity, ... I installed the SSH server on the Linux box and we installed http://ssh.com Windows clients on our home ... The server is version 2, of course, but the SSH server seems to be down at this moment so I cannot provide the exact version number ...
    (Security-Basics)