Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to connect to an FTP server from the Linux command line. The server is configured behind a proxy.

If I call:

echo $ftp_proxy 

I get a result like this:

abc.def.ghi.jkl:8080

If I call:

ftp -pn $ftp_proxy

I get a unknown host error.

How can I connect to the FTP server using the Linux command line?

share|improve this question

migrated from stackoverflow.com Aug 15 '11 at 14:26

This question came from our site for professional and enthusiast programmers.

up vote 1 down vote accepted

When using an address:port and ftp, you cannot use the colon. ftp is expecting two parameters as ftp -pn host port.

Use a space instead of the colon.

example="abc.def.ghi 8080"
ftp -pn $example
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .