I'm using remoteuser and remotePC as the username and remote PC host name replace with the correct names.Ĭorrect syntax in your example: scp -r "/drives/C/Users/Andrea/Documents/Betrivius/candycane-0.9.6/candycane" the command man scp or this site for additional details (arguments, other usage info). Generally the full path and filename is specified in the FROM section, and just the path in the TO section (it will default to keeping the same filename). filename can be left out when doing a recursive copy as in your situation - just provide the path in that case. Path/filename defaults to the specified users home directory and it can be omitted if that's desired. Host defaults to the local computer (localhost) so if you are copying to / from the local machine AND the username on localhost to be used is the current user, you can omit that argument for the local file(s). User defaults to your current, local username - it can be left out if that is the correct user name in both the source and destination. It is really just an ssh enabled version of the standard cp command with the section prior to the : containing the ssh specific information, and the info afterwards pertaining to the cp operation. The brackets indicate optional arguments. MobaXterm provides access to local drives in it's shell via the mountpoint /drives/X, with X being the windows drive letter.Īdditionally, the (simplified) general syntax of scp, regardless of environment is: scp usage: scp first sequence ( is the 'FROM' section the source of the file or files to be copied. If that is the case, you need to update the scp command syntax to accommodate that environment, although the syntax is incorrect regardless. Presumably you are running this in a local MobaXterm shell (i.e.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |