1819803 Members
3197 Online
109607 Solutions
New Discussion юеВ

ftp

 
harikrishna
Advisor

ftp

hi,
how to login to into the remote system by using ftp,without giving username and password.so that it has to refer .netrc file for user and password for the given ip.

Thanks in advance.
4 REPLIES 4
T G Manikandan
Honored Contributor

Re: ftp

Create a .netrc file in the home directory

The .netrc file should have the syntax

machine [remote host] login [remote username] password [remotepassword]

Try doing a ftp

ftp <
open
ls
quit
EOF
Vijaya Kumar_3
Respected Contributor

Re: ftp

Also, the permission for this .netrc file should be 600

Thanks
Vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Steven E. Protter
Exalted Contributor

Re: ftp

If you'd like to do this secure, try this:

Install this:
http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA

Follow this document and you can do secure transfer password free.

See attachment.

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
sam_111
Trusted Contributor

Re: ftp

hi

here is the syntax of .netrc file

default login anonymous password user@site

please check the link below for furthere reference.
http://publibn.boulder.ibm.com/doc_link/en_US/a_doc_lib/files/aixfiles/netrc.htm
http://www.linuxgazette.com/issue34/izquierdo.html

regards,
sam
"Hard Work always Pays off"