1832182 Members
2862 Online
110038 Solutions
New Discussion

Re: Newbie question

 
Raj_63
Occasional Contributor

Newbie question

Hi,

I want to transfer files between a windows machine and a linux box. I know that you can use ftp. But using ftp, am not able to transfer directories between the two systems. Is there a workaround? Other options are to use apps like cuteftp, smartftp etc. But what about rcp? Can I use rcp to transfer files between a windows system and a linux system or is it strictly linux to linux only?

Please help.

.. Raj
9 REPLIES 9
Stuart Browne
Honored Contributor

Re: Newbie question

If you enable the 'rsh' service, and set up the appropraite '.rhosts' files, then it is possible to use the Windows based 'rsh' and 'rcp' to copy files.
One long-haired git at your service...
Ragu_3
Trusted Contributor

Re: Newbie question

If you are using putty, there is this pscp command to scp from the GNU/Linux server to your Windows machine. In a GNU machine, the rcp command is usually symlinked to the scp command. Hth ....

--
Ragu
Debian GNU/Linux for the Enterprise! Ask HP ...
Paul_504
Frequent Advisor

Re: Newbie question

Raj, hi

As another alternative, you can enable samba and mount a filesystem of your Linux system on your windows system. This way you have a windows gui and all you do is copy and paste files and directories between the two just as you would were you doing it locally on your windows system.

There are a couple of steps to follow, but if you're interested, let me know and I'll post the step by step for you.

Regards
Paul
Raj_63
Occasional Contributor

Re: Newbie question

Thanks everybody for your suggestions.

Paul, could you please provide the steps?

Cheers,
Raj
Jan Sladky
Trusted Contributor

Re: Newbie question

Hi Raj,

to be able to mount Linux dir you have to install samba server
than in /etc/samba/smb.conf you must do following:

[music] #use the name in windows like directory you want to connet e.g #\\10.10.10.10\music
comment = Home Directories
path = /home/music/ #the dir
read only = No
create mask = 0640
directory mask = 0750
browseable = Yes #visible on network

create the user you want to connect to dir like:
smbpasswd -a user1
passwd

and restart smb server:
/etc/init.d/smb restart

you can check setting by:
testparam

and see who is currently connected:
smbstatus

don't forget to set appropriate chmod or chown to shared dir , eg.
chown user1 /home/music

rgds Jan
GSM, Intelligent Networks, UNIX
Paul Cross_1
Respected Contributor

Re: Newbie question

There are, like anything else UNIX related, about 10,000 ways to do this. All the above options are valid. Another way you could do this is rsync (involves enabling rlogins, which is risky due to data being send in clear text) which will sync all recursive directories if you ask it to.
Or, tar the file, then ftp it. Or maybe wget might work providing the directory is under your doc root.

If you have your heart set on using rcp, consider scp, the secure version.
Bruce Copeland
Trusted Contributor

Re: Newbie question

If you are running XWindows on the linux box, you can also do what Paul and Jan are describing from the linux side using the smbclient tools. You need to share whatever directories you want to transfer on the windows box. Then you can use one of the graphical file managers like nautilus or konquerer to access the windows shares. The transfer is basically drag and drop.

Bruce
Matthias Bayer
Advisor

Re: Newbie question

Hi Raj,

i would suggest using a tool like 'Winscp' on widows.
it has a exploer (norton commader)-like interface where you can drag and drop files or directories from/to windows/linux.

bye
Matthias
Fred Ruffet
Honored Contributor

Re: Newbie question

If your transfert doesn't need to be automated and comes from windows request, why don't you use a graphical client. If you are new to linux this may be simpliest way.

Other wise, you could use wget with -r options to get files. There are ports for linux and windows.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)