cc_staff
65
edits
No edit summary |
(Marked this version for translation) |
||
Line 147: | Line 147: | ||
SCP supports an option, <code>-r</code>, to recursively transfer a set of directories and files. We '''recommend against using <code>scp -r</code>''' to transfer data into <code>/project</code> because the setgid bit is turned off in the created directories, which may lead to <code>Disk quota exceeded</code> or similar errors if files are later created there (see [[Frequently_Asked_Questions#Disk_quota_exceeded_error_on_.2Fproject_filesystems | Disk quota exceeded error on /project filesystems]]). | SCP supports an option, <code>-r</code>, to recursively transfer a set of directories and files. We '''recommend against using <code>scp -r</code>''' to transfer data into <code>/project</code> because the setgid bit is turned off in the created directories, which may lead to <code>Disk quota exceeded</code> or similar errors if files are later created there (see [[Frequently_Asked_Questions#Disk_quota_exceeded_error_on_.2Fproject_filesystems | Disk quota exceeded error on /project filesystems]]). | ||
<!--T:33--> | |||
'''<big>***Note***</big>''' if you chose a custom SSH key name, <i>i.e.</i> something other than the default names: <code>id_dsa</code>, <code>id_ecdsa</code>, <code>id_ed25519</code> and <code>id_rsa</code>, you will need to use the <code>-i</code> option of scp and specify the path to your private key before the file paths via: | '''<big>***Note***</big>''' if you chose a custom SSH key name, <i>i.e.</i> something other than the default names: <code>id_dsa</code>, <code>id_ecdsa</code>, <code>id_ed25519</code> and <code>id_rsa</code>, you will need to use the <code>-i</code> option of scp and specify the path to your private key before the file paths via: | ||
<!--T:34--> | |||
{{Command | {{Command | ||
|scp -i /path/to/key foo.txt username@beluga.computecanada.ca:work/ | |scp -i /path/to/key foo.txt username@beluga.computecanada.ca:work/ |