Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.