Search code examples
linuxftpsftpunknown-host

ftp: Name or Service not known


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?


Solution

  • 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 *