dib-lab / dib_rotation

Metagenomics DIB-lab rotation project
https://dib-lab.github.io/dib_rotation/
BSD 3-Clause "New" or "Revised" License
3 stars 8 forks source link

Metagenomics Project: "Find and download the data" SCP code #55

Closed nkavaler1 closed 10 months ago

nkavaler1 commented 1 year ago

doing it the way it was said resulted in error:

nataliekavaler@Natalies-MacBook-Air-18 ~ % scp -P 2022  -i /.ssh/id_rsa nkavaler@farm.cse.ucdavis.edu:2020_rotation_project/raw_data/*.html . 
zsh: no matches found: nkavaler@farm.cse.ucdavis.edu:2020_rotation_project/raw_data/*.html

fixed version

nataliekavaler@Natalies-MacBook-Air-18 ~ % scp  -i /.ssh/id_rsa nkavaler@farm.cse.ucdavis.edu:2020_rotation_project/raw_data/\*.html . 
Warning: Identity file /.ssh/id_rsa not accessible: No such file or directory.
SRR1976948_2_fastqc.html                          100%  591KB   4.3MB/s   00:00 
mr-eyes commented 1 year ago

You can also do

scp  -i ~/.ssh/id_rsa "nkavaler@farm.cse.ucdavis.edu:2020_rotation_project/raw_data/*.html" .
mr-eyes commented 1 year ago

Note the ~ before /.ssh and the quotes around the server path of wildcards.

ctb commented 10 months ago

fixed by #57 I believe

mr-eyes commented 10 months ago

fixed by #57 I believe

I don't think the wildcard issue has been resolved. https://github.com/dib-lab/dib_rotation/pull/57/files#diff-54ddbdd9add2bd1c3b5c985ebd8fb673eda4ea4ed4bc4913eb3ec468fab2b801R201