Configuring proxy settings in lftp
I sometimes need to upload data to Red Hat's dropbox
service, and most of the
times I need to go through a proxy of some sort. Here's a quick note on how to
configure lftp to use such a proxy.
# lftp lftp :~> set ftp:proxy http://USER:password@yourproxy:8080 lftp :~> open 209.132.183.100 lftp 209.132.183.100:~> user anonymous Password: lftp anonymous@209.132.183.100:~> cd /incoming cd ok, cwd=/incoming lftp anonymous@209.132.183.100:/incoming> put yourfile.tar.gz -o YOURCASENUMBER-yourfile.tar.gz
As you can see:
- I used the
set ftp:proxy
command to configure the proxy. - Then I used
209.132.183.100
rather thandropbox.redhat.com
. Some proxies do not work if using the DNS hostname, for some reason. - After that, I blindy changed into /incoming . It's the only directory with allowed wrting permissions
- Finally I used
put -o
to specify the destination filename.
Additional notes on configuring lftp to upload information to Red Hat can be found in KCS 2112 .
Happy hacking!