cc_staff
6
edits
mNo edit summary |
No edit summary |
||
Line 146: | Line 146: | ||
<!--T:29--> | <!--T:29--> | ||
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]]). | ||
'''<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: | |||
{{Command | |||
|scp -i /path/to/key foo.txt username@beluga.computecanada.ca:work/ | |||
}} | |||
<!--T:20--> | <!--T:20--> | ||
[[Category:Connecting]] | [[Category:Connecting]] | ||
</translate> | </translate> |