Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides
https://forum.ivorde.com/

Set up FTP PROXY via command line in Linux/FreeBSD
https://forum.ivorde.com/set-up-ftp-proxy-via-command-line-in-linux-freebsd-t19733.html
Page 1 of 1

Author:  mandrei99 [ Tue Jan 20, 2015 5:01 pm ]
Post subject:  Set up FTP PROXY via command line in Linux/FreeBSD

Setting up FTP PROXY via command line in Linux/FreeBSD

Setting up FTP PROXY for command line tools in FreeBSD and Linux is the same as setting HTTP proxy: you can make use of the environment variable FTP_PROXY.

Assuming Proxy address 192.168.0.1 and port 3128, we use:

Code:
# export FTP_PROXY='http://192.168.0.1:3128'
In case the proxy requires authentication:
Code:
# export FTP_PROXY='http://username:password@192.168.0.1:3128'


To make this setting permanent, add the line to your /etc/profile or ~/.profile or ~/.(bash|sh|ksh)rc.

Removing FTP_PROXY for current shell requires unsetting the variable:
Code:
# unset FTP_PROXY

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/