1819793 Members
3286 Online
109607 Solutions
New Discussion юеВ

Linux to Windows FTP

 
Abhijit P.
Valued Contributor

Linux to Windows FTP

Dear all,

I have a Red Hat Linux Server and I want this server to do a FTP to a Windows 2000 Professional System and mget files from it

Please help how should I go About it

Thanks and regards,
Abhijit
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Linux to Windows FTP

1) Install the FTP server that ships with Windows. Be default it is not installed.
2) Make sure you start the service.

3) Use the ftp client in Linux to connect to the newly anoined Windows ftp server.

ftp windowsftpserver.your.net

4) log in with a userid and password that is valid on the Windows box.

5) mget your files.

If they are binary, make sure you issue the binary command prior to starting the transfer.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Gopi Sekar
Honored Contributor

Re: Linux to Windows FTP


Install the FTP server which comes part of IIS. then from linux shell prompt, run

ftp

it will prompt you for user name and password. after authentication, run 'cd ' to change to the source directory in windows.
then, type 'bin' command to initiate binary mode transfer and 'mget ' to initiate file transfer.

Regards,
Gopi
Never Never Never Giveup
Bejoy C Alias
Respected Contributor

Re: Linux to Windows FTP

Install the FTP server in Windows 2000 Prof from the Add/Remove windows components > IIS option . Try ftp'ing to localhost from Win 2K for testing. Install the rpm of ftp client in linux server , which will be there by default ( if it is not there install it from the rpm file ftp-xxxx.rpm from the installation CD no 2 in RHEL). Then ftp to the Win 2K pc as 'ftp xx.xx.xx.xx' where xx is the ip addr of Win 2K . Login with the windows login name . Default working directory will be c:\inetpub\ftproot in win 2k . U can put the required files there which u r going to transfer to linux. u can then transfer the files using 'mget filename'.
Be Always Joy ......
C. Beerse_1
Regular Advisor

Re: Linux to Windows FTP

Do you realy need ftp to transfer the file? Then get the ftp-server running on the W2k machine. Now you can use `ftp` to mget your files.

If you need to script this ftp and mget, have a look at `wget`. That is not interactive which is better in scripts. To use ftp with wget, just give it an ftp-style uri: `wget ftp://user:passwd@W2Kmachine/path/to/file`. Peek at `man wget` for options to transfer entire trees.

On the other hand, there are many more ways to get files. My first idea (way before ftp) is to use cifs/samba/smb: Share the directory with the files you need to transfer. Now you can use `smbclient` to "samba-ftp" the files. Or you can mount the share and use the files direct (`smbmount //w2kmachine/share /mnt/smb -o username=w2k_uid%w2k_domain`)

Then you can use the webserver (iis) on the w2k machine to open the direcotry for browsing and use `wget` to fetch the files.

In the end, there is also nfs: make the W2K machine a nfs-server, export the directory, mount this export on the linux box and use it.
make everything as simple as possible, not simpler (A.Einstein??)