ftp: Name or Service not known

Scicare picture Scicare · Aug 6, 2013 · Viewed 39.1k times · Source

in command line

> ftp ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/data/

Work on one computer but does not work on my other one. Error returned

ftp: ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/data/: Name or service not known

I also tried the raw IP address which is

> ftp ftp://130.14.250.10/1000genomes/ftp/data/

But it didn't work.

What is the problem here? how can I fix this?

Answer

Joni picture Joni · Aug 6, 2013

The ftp command accepts the server name, not a URL. Your session likely should look like:

ftp ftp-trace.ncbi.nih.gov
(Server asks for login and password)
cd /1000genomes/ftp/data/
mget *