![]() On Windows, use backslash, at least at conventional command console. Or going the other way around: scp C:\myRepo\ProjectFooBar\somefile.cpp also found that if spaces are in the path, the quotations should begin following the remote host name: scp Long Folder Name\somefile.cpp" C:\myRepo\SimplerNamerBroĪlso, for your particular case, I echo what Cornel says: Using SCP command SCP is the CLI command we use to perform copy over SSH. We cannot use HOME because it will be interpreted as the home folder on the local computer. scp will log you into the remote server, copy the file, then log you out again in one process, so just run it from a shell on your local machine. Transferring securely from a remote system to your local system: scp C:\myRepo\ProjectFooBar The symbol represents the user's home folder on the remote server. To clarify, you typically don't use scp to copy a file to or from your local machine (System A) while logged in to a remote server (System B) with ssh. ![]() I found the required syntax to beīY EXAMPLE INSTEAD OF MORE OBSCURE AND INCOMPLETE TEMPLATES: Though surprisingly simple, it took a while. ![]() node to your home directory on your local machine is a similar process as shown below. Either use pscp.exe from the Windows command line (it is part of the 'full' PuTTY install), or (much easier) install and use WinSCP on the Windows machine. On Windows 10 Pro connecting to Windows 10 Pro, both running OpenSSH (Windows version 7.7p1, LibreSSL 2.6.5), I was able to find a solution by trial and error. Port: leave it blank Protocol: SFTP - SSH File Transfer Protocol. Unless you have installed an SSH server on Windows, you won't be able to use scp on the remote machine to copy to the local (Windows) machine. This simple, natural question does not seem to be documented anywhere. I, therefore, hope I can contribute and help someone as they too find themselves stumbling for an answer. I see this post is very old, but in my search for an answer to this very question, I was unable to unearth a solution from the vast internet super highway.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |