05-03-2013
How to do ftp from UNIX to windows machine?
hi,
i am using ftp command to transfer files from unix server to windows server using a web interface.
there is a shell script which is called by the web page which executes a ftp command which (ftp) tries to connect to the windows machine and asks for username and password.
so in order to complete the ftp i thought of two methods
1) i need to pass the username and password to the shell script via command line arguments from the web page.
2) store the windows machine name and the password in a file which is read by the shell script.
in both these methods i think there is a security threat to the windows machine since any 1 can hack the password.
so plz help me out how to do this.
can we do ftp from unix to windows without using username and password?
is there any other protocol to transfer files from unix to windows and vice-versa?
please if you have any idea.
thanks
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hello guys ,
Is there a way to backup unix files from a windows 2003 server
i have a tape drive in the unix box but just for extra security what would be the best way to backup unix files .
Thanks a lot (7 Replies)
Discussion started by: josramon
7 Replies
2. Windows & DOS: Issues & Discussions
I've read some of the threads on here about ftping. It seems most relate to ftp-ing from one unix environment to another. What I'm looking for is a way to ftp files from unix out to an windows NT machine that is connected to a network. If anyone has a simple or complex example, I would sure... (8 Replies)
Discussion started by: anthreedhr
8 Replies
3. UNIX for Advanced & Expert Users
hi
i want run an unix application from a windows program/application.i am using SSH(command line version)to log on to a unix machine from windows. the application has to read a configuration file inorder to run. the configuration file .CFG is in bin in my home directory. but the application... (1 Reply)
Discussion started by: megastar
1 Replies
4. Shell Programming and Scripting
Hi
i need to FTP files from windows to unix(sun) machine using script. what are the scripts commands i need to use to transfer files
Thanks (2 Replies)
Discussion started by: bmkreddy
2 Replies
5. Shell Programming and Scripting
I am using windows Xp. From windows I would connect to my IBM AIX unix machine using telnet client. Is there any command available to view the IP address of Windows machine from Unix? (Note that ifconfig will give unix mahcine's IP address currently logged in.) (3 Replies)
Discussion started by: mvictorvijayan
3 Replies
6. Shell Programming and Scripting
i need to ftp a file from windows to a unix machine by executing a sript(perl/shell/php) from that unix machine.i can also use HTML and javascript to build forms. (3 Replies)
Discussion started by: raksha.s
3 Replies
7. Shell Programming and Scripting
Hello World,:cool:
Is there a Way to create a UNIX enviornment on Windows bases Machine for enchancing my Skills regarding UNIX scripting.:confused:
I know a software name VMware but i dont know how to confiure it:rolleyes:. If this is the apporitate tool for UNIX please guide me the... (3 Replies)
Discussion started by: jojo123
3 Replies
8. UNIX for Dummies Questions & Answers
What is the best way to learn UNIX, shell, and Perl on a Windows 2000 machine? My place of employment uses Solaris and Perl and I would like to learn some UNIX skills on my home PC.
I read about "dual boots", "Microsoft Windows Services for UNIX", and "cygwin". What other free options are... (9 Replies)
Discussion started by: wolfv
9 Replies
9. UNIX for Dummies Questions & Answers
Hi Friends
Pl. clarify the following.
1. By using ftp hostname we can connect each other as long as within the n/w. Provided user name and password.
2. Using mget****(required files with extension) can trasnsfer all the files(text as well as graphical formats).
3. How we can reproduce the... (2 Replies)
Discussion started by: mohamedfaizyka
2 Replies
10. IP Networking
hi, i want to write a shell script code which transfers files from a directory in unix server to a directory in a windows machine.. can any1 give me a sample code which uses ftp or sftp command..
thanks very much, (3 Replies)
Discussion started by: Little
3 Replies
netrc(5) File Formats Manual netrc(5)
Name
netrc - file used by ftp auto-login procedure (.netrc)
Description
The file contains frequently needed options for transfers. The file resides in the owner's home directory on the machine from which the
owner initiates the file transfer. If the file includes passwords, set permissions on the file with so that only the owner has read per-
mission.
The file uses the following format:
o Each line of the file defines options for a specific machine.
o A line in the file can be either a machine line or a default line.
o The default line must be the first line in the file if it is present.
o Fields in a default line appear in this order: default, default machine name.
o Fields in a machine line appear in this order: machine, machine name, options.
o Fields on each line are separated by spaces or tabs.
The following are valid options for a machine line:
-------------------------------------------------------------------
Option Parameter Default Description
-------------------------------------------------------------------
machine machine name none Identifies a remote
machine name
login name local name Identifies user on the
remote machine
password password none Password for remote
login name
account password none Additional account password
macdef macro name none Defines a macro like the
ftp macdef command
-------------------------------------------------------------------
Example
This is an example of a file:
machine cactus login smith
machine nic.ddn.mil login anonymous password anonymous
machine palm.stateu.edu login smith password ualonerwelcome
macdef byenow
quit
macdef ls
dir
The first line allows to log Smith into the machine after prompting for and receiving Smith's password, as shown in this example:
$ ftp cactus
Connected to cactus.tech.edu
FTP server ready.
Password required for SMITH.
User logged in
ftp>
The second line of the file allows the user to perform an anonymous transfer after typing this command:
$ ftp nic.ddn.mil
See for a description of anonymous FTP transfers.
The third line allows Smith to log into the machine Smith will not be prompted for a password because this machine line includes password
information. Because the file includes password information, the file must not have read permission set for world and group.
The lines are macro definitions, which operate much like shell aliases. A blank line must follow each macro definition to signal the end
of the macro. The first macro definition defines as an alias for the command.
See Also
ftp(1c)
netrc(5)