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 18.104.22.168 lftp 22.214.171.124:~> user anonymous Password: lftp firstname.lastname@example.org:~> cd /incoming cd ok, cwd=/incoming lftp email@example.com:/incoming> put yourfile.tar.gz -o YOURCASENUMBER-yourfile.tar.gz
As you can see:
- I used the
set ftp:proxycommand to configure the proxy.
- Then I used
dropbox.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 -oto specify the destination filename.
Additional notes on configuring lftp to upload information to Red Hat can be found in KCS 2112 .