on macOS, if we
scp -i /path/to/key/file username@farm.cse.ucdavis.edu:~/* ./
an error occure:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/Users/yuenchingshen/.ssh/id_rsa.pub' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/Users/yuenchingshen/.ssh/id_rsa.pub": bad permissions
yc22@farm.cse.ucdavis.edu's password:
it works on macOS when:
command in .ssh terminal
cd .ssh
take out command -i and path to key
escape wild card because mac uses a different operate system
Transferring data from Farm to your computer
scp -i /path/to/key/file username@farm.cse.ucdavis.edu:~/2020_rotation_project/raw_data/*.html .
on macOS, if we
scp -i /path/to/key/file username@farm.cse.ucdavis.edu:~/* ./
an error occure:it works on macOS when:
cd .ssh
scp -i /path/to/key/file username@farm.cse.ucdavis.edu:~/2020_rotation_project/raw_data/\*.html ./