Skip to content

Commit

Permalink
Add Windows version of scp
Browse files Browse the repository at this point in the history
  • Loading branch information
elg committed Jan 13, 2020
1 parent e878704 commit 6cb6644
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/user-side-usage/scp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,17 @@ From local to target :
$ scp /etc/passwd passhport@my-passhport-server:TARGET_NAME//tmp/.
For Windows, you have to consider using "pscp" command. You can find it here: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
Be aware that you will need a private key file in "ppk" format. You can use puttygen to generate one or converrt your current private key.
Pscp command tries to use SFTP protocol leading to this error:

.. code-block:: none
FATAL ERROR: Received unexpected end-of-file from server

In order to use pscp with PaSSHport, consider using this syntax including "-scp" flag:

.. code-block:: none
pscp -scp -i "C:\path\to\sshkeys\my_private_key.ppk" "C:\path\to\file\totransfer.txt" passhport@my-passhport-server:TARGET_NAME//pah/to/copy

0 comments on commit 6cb6644

Please sign in to comment.