LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-05-2004, 06:20 AM   #1
e11
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 84

Rep: Reputation: 15
File Transfer from XP to Linux


Hi,

I have an XP machine and a Debian Linux machine in the same LAN, is there a way to transfer files between the 2 machines?

One option is to share a directory on the XP machine using windows sharing, and transfer files through that shared directory, but would it be vulnerable to attacks from outside the LAN? (Even though sharing is only within the LAN).


Thanks and Regards,

Edwin
 
Old 11-05-2004, 07:27 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
well basically there's always the risk it's just how big it is. I don't think that big...use samba if you want to share a lot of files easily between windows and linux.

if you, on the other hand, need a quick ftp-alike transfer that's secure, use the sftp that becomes with ssh. for windows, go to SSH's site and get their version, and for linux just get openssh.
 
Old 11-05-2004, 07:34 AM   #3
e11
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by b0uncer
well basically there's always the risk it's just how big it is. I don't think that big...use samba if you want to share a lot of files easily between windows and linux.
That's equivalent to windows sharing is it?

Quote:
if you, on the other hand, need a quick ftp-alike transfer that's secure, use the sftp that becomes with ssh. for windows, go to SSH's site and get their version, and for linux just get openssh.
So in this case, its setting up an ftp server on the linux machine, and accessing it with the client in xp?


Thanks and Regards,

Edwin
 
Old 11-05-2004, 07:37 AM   #4
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
well, not actually - you start sshd in your linux machine. then make perhaps a bit config to let your windows machines log into your linux machine via SSH. this allows using sftp too, so you don't need an ftp-server actually...after sshd is running and configured, you simply take a SSH-connection through the sftp from windows to linux. and it works like ftp, but is more secure

EDIT: samba enables windows to use some shared space in linux, and vice versa. so linux can connect to XP shared disk/folder, and XP can connect to shared linux directory...samba is run on linux, and Windows sees it as another windows-share then - it needs too a bit configuring before use, but it's quite simple and should work in no time. I suggest this if you need to do file transfers often and with big amounts, and aren't totally crazy at making everything in the most secure way

another thing: sftp works from windows to linux (copy files from linux), but to use it vice versa (to copy files from windows to linux) you'd need an SSH-server in windows too - and I don't know if there are any free apps for this. so if you need to transfer files both ways, use samba...

Last edited by b0uncer; 11-05-2004 at 07:44 AM.
 
Old 11-05-2004, 08:50 AM   #5
e11
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by b0uncer
another thing: sftp works from windows to linux (copy files from linux), but to use it vice versa (to copy files from windows to linux) you'd need an SSH-server in windows too - and I don't know if there are any free apps for this. so if you need to transfer files both ways, use samba...
icic... in other words, the client can only pull files from the server, and can't upload is it?


Thanks and Regards,

Edwin
 
Old 11-05-2004, 09:50 AM   #6
pld
Member
 
Registered: Jun 2003
Location: Southern US
Distribution: Ubuntu 5.10
Posts: 206

Rep: Reputation: 30
actually, sftp will allow you to transfer files in both directions, much like a regular ftp server would. it is just that you have to do the file transfers from the win machine connecting to the linux machine because there really arent any free ssh daemons out there for windows.

basically, download the ssh client for windows.
in linux, run sshd
in windows, connect to your linux machine.
log in, and then open the file transfer in the ssh client software.

you can now upload and download files between the two machines.

i do this all the time to ssh to my home machine while i am at work.

For ssh client for windows
http://www.ssh.com/support/downloads...ommercial.html

hth,
pld
 
Old 11-05-2004, 10:00 AM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Forget what everyone said and just install and use WinSCP for windows. All you have to do is make it so your Linux machine is running ssh. Its like doing a scp from one linux box to another.. but with Windows. More secure than FTP too!

http://winscp.sourceforge.net/eng/

Or just setup Samba as well..

Last edited by trickykid; 11-05-2004 at 10:02 AM.
 
Old 11-05-2004, 12:26 PM   #8
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
Re: File Transfer from XP to Linux

Quote:
Originally posted by e11
Hi,

I have an XP machine and a Debian Linux machine in the same LAN, is there a way to transfer files between the 2 machines?

One option is to share a directory on the XP machine using windows sharing, and transfer files through that shared directory, but would it be vulnerable to attacks from outside the LAN? (Even though sharing is only within the LAN).


Thanks and Regards,

Edwin
few things you can do.

1. winSCP is your friend when it comes to moving files from M$ to *nix. it is a sFTP GUI program that works much like cuteFTP. very intuitive, and gives you access to setting permissions on files/folders on the *nix box. you can also execute/read/delete files this way.

2. to go from *nix to XP on your debian box you will need both smbfs and smbclient. then you can creat a share on your XP box and smbmount //111.111.111.111/share /what/ever/folder/you/made/to/mount/share/to enter password. if your debian box and XP box have different user names, then you will need to read man smbmount for the argument to send the user name, and if you wish to send the password via the smbmount command it tells you how to encrypt it. i just prefer not to send the p/w with the smbmount command.

as for security, XP is only as secure as XP is.
 
Old 11-06-2004, 12:17 PM   #9
e11
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
Hi all,

Thanks for all the replies! Think i'll go for the sshd option. Basically i'll start sshd on the Linux machine, and access it from the XP machine using WinSCP.

Thanks again, will be back if i have problems.


Regards,

Edwin
 
  


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
How to do file transfer in linux pspandu Linux - General 7 09-12-2006 03:09 AM
there a way to transfer a file on linux to windows? e0r Linux - Newbie 4 02-21-2005 12:29 PM
file transfer from linux to xp michi56 Linux - Newbie 5 03-07-2004 01:26 PM
Linux/Windows file transfer: Possible? Fudge T Goblin Linux - Newbie 6 09-17-2003 12:12 PM
MS-word file transfer in linux shibdas Programming 10 09-13-2003 07:32 AM


All times are GMT -5. The time now is 02:52 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration