(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



FTP through a proxy (netrc)

Fri Mar 12 20:24:04 GMT 2004 FTP through a proxy (netrc)

In case you ever run into a situation where you need to ftp through a proxy server and want to use a .netrc file, this worked for me:



machine ftp.xyz.com login tyua166 passwd tyua166dt 
macdef init
user "1801759@foo.bar.com 15181" M2UDGHP
..(commands here)
quit

The "tyua166" and "tyua166dt" is the login to the proxy, not the ftp site. In this case, the proxy required us to go to a specific port (15181) and the password was M2UDGHP.

The quotes around the user name and port number are required because of the port number.




Click here to add your comments





Wed Oct 7 13:38:17 2009: Subject: .netrc   anonymous

gravatar
machine ftp.xyz.com login tyua166 passwd tyua166dt
macdef init
user "1801759@foo.bar.com 15181" M2UDGHP
..(commands here)
quit
so your proxy user is 1801759 and your proxy passwd is M2UDGHP
i presume your remote login is tyua166 and your remote passwd is tyua166dt
?

your post is not clear enough.

Thanks



Wed Oct 7 14:06:28 2009: Subject:   TonyLawrence

gravatar
No, you have it backwards.



Wed Oct 7 20:05:06 2009: Subject: .netrc   EnriqueEscobar

gravatar
so what is the real answer A) or B) ?
A)
machine ftp.xyz.com login REMOTE_USER passwd REMOTE_PASSWORD
macdef init
user "PROXY_USER@foo.bar.com PROXY_PORT" PROXY_PASSWORD
..(commands here)
quit
or
B)
A)
machine ftp.xyz.com login PROXY_USER passwd PROXY_PASSWORD
macdef init
user "REMOTE_USER@foo.bar.com REMOTE_PORT" REMOTE_PASSWORD
..(commands here)
quit

A) or B)?



Wed Oct 7 20:09:09 2009: Subject:   TonyLawrence

gravatar
B.

First login is to proxy.

Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar

cartoon


Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.


book graphic unix and linux troubleshooting guide

My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!



 I sell and support
 Kerio Mail server




pavatar.jpg
More:
       - Blog
       - FTP


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress