问题原文
原帖链接 · Sanjay Prajapat · CC BY-SA 4.0
I have Ubuntu 16.04 installed on my pc. My network require http proxy to access the internet.
Say Proxy is "xxx.xx.xx.xx" and port is "8080".
I set up system proxy for http, https and ftp. I am able to access internet through terminal. But I am able to access FTP server only in web browser, not in terminal.
When i try to access FTP server, i get :
user@hostname:~$ ftp ftp.example.org
ftp: connect to address 213.138.116.78: Connection refused
Trying 2001:41c8:112:8300::15:0...
ftp: connect: Network is unreachable
ftp>
It working with VPN.
Any help is appreciated.
已采纳解答
原帖链接 · Marco · CC BY-SA 3.0
Install lftp. It has an ftp proxy environment variable that you can set to connect through proxy from the command line. lftp man page
Example:
user@yourmachine:~$ sudo apt-get install lftp
[...]
user@yourmachine:~$ lftp
lftp :~> set ftp:proxy http://proxyuser:proxypass@yourproxyIPorHOSTNAME:port
lftp :~> open ftp.example.com
lftp :~> USER ftpUSER
password: ftpPASS
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
