LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-19-2014, 02:27 PM   #1
sniper8752
Member
 
Registered: Oct 2012
Posts: 567

Rep: Reputation: Disabled
Best/Easiest way to copy files


What is the best/easiest way to copy files from a Linux server to a client windows machine?
 
Old 08-19-2014, 02:31 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,329

Rep: Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331
If you want to do this frequently, run samba on the Linux server and mount the share on the Windows machine.

If you want this as simple and easy as possible one-time, use an email attachment.
 
Old 08-19-2014, 02:46 PM   #3
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,798

Rep: Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943
In the linux box:
Code:
nc -l -p 60000 -q 0 < filename_to_copy
Then in windows, just open Internet Explorer, Firefox etc to the url:
Code:
http://<linux box IP>:6000
Port number (60000) can be any number from 1024 to 65535

It is not the best way, maybe easy

Last edited by keefaz; 08-19-2014 at 02:59 PM. Reason: added -q 0 option to netcat so it terminates when end is reached
 
Old 08-19-2014, 03:00 PM   #4
sniper8752
Member
 
Registered: Oct 2012
Posts: 567

Original Poster
Rep: Reputation: Disabled
Sorry - forgot to mention it needs to be secure.
 
Old 08-19-2014, 03:03 PM   #5
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Quote:
Originally Posted by smallpond View Post
If you want to do this frequently, run samba on the Linux server and mount the share on the Windows machine.

If you want this as simple and easy as possible one-time, use an email attachment.
Or the opposite. Mount the Windows share locally to the Linux box and copy files to it. Use windows credentials to protect it. etc...
 
Old 08-19-2014, 03:06 PM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,798

Rep: Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943
Quote:
Originally Posted by sniper8752 View Post
Sorry - forgot to mention it needs to be secure.
You should have asked for that at first!

Windows has ssh client (PSCP)
http://www.chiark.greenend.org.uk/~s.../download.html
 
Old 08-19-2014, 03:25 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,801

Rep: Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333
In addition Winscp and FileZilla are two GUI file transfer clients that are capable of using the ssh protocol.

Is this local or internet?
 
Old 08-19-2014, 08:57 PM   #8
sniper8752
Member
 
Registered: Oct 2012
Posts: 567

Original Poster
Rep: Reputation: Disabled
The file transfer would be done over the internet.
 
Old 08-20-2014, 05:40 PM   #9
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
If you initiate the copy from windows winSCP connected to your linux computer works well.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Easiest way to transfer files through an intermediate computer farnsy Linux - Networking 4 08-01-2012 05:15 PM
Easiest way to share files between two linux installations on same computer? KindOfNeutral Linux - Newbie 15 05-24-2009 08:20 AM
Easiest way to share files between two Linux machines anti.corp Debian 5 01-19-2006 04:31 PM
Easiest way to copy a boot drive to a new hard drive lsgko Linux - Software 3 05-24-2005 09:38 PM
Easiest way to copy audio cd? ivanatora Linux - General 1 07-06-2004 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration