Bash, copy files from the server to the local disk

0

I'm trying to copy some files that I have on the server to the local disk through the following command

    scp [email protected]:media/lab7/Disk1/blast_out/*e0001_ssRNA_blast.out adrian@adrianuser:~/adrian/Documents/

but until now executing this command I have always obtained this answer

      ssh: Could not resolve hostname adrianuser: Name or service not known lost connection

How can I copy them without giving me this error?

After most of the comments the problem was discovered, and that is that Adrian is my home so the command would be,      scp [email protected]: media / lab7 / Disk1 / blast_out / * e0001_ssRNA_blast.out adrian @ adrianuser: ~ / Documents /

Thanks for the attention, Greetings

    
asked by Adrián P.L. 05.06.2018 в 16:06
source

1 answer

1

Maybe the problem related to No such file or directory. is in the path to the file you want to copy (source):

media/lab7/Disk1/blast_out/*e0001_ssRNA_blast.out.

Is there path 'media/...' or is there a missing bar at the beginning '/media/...' ?

With regard to the error of Could not resolve hostname adrianuser , is it possible that you have not registered that host on your machine (this could be checked by pinging that host, ping adrianuser ?

    
answered by 05.06.2018 / 16:25
source