scp through PaSSHport¶
To use SCP throug PaSSHport, use one of the following syntax...
From target to local :
$ scp [email protected]:TARGET_NAME//etc/fstab /tmp/.
From local to target :
$ scp /etc/passwd [email protected]: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 convert your current private key. Pscp command tries to use SFTP protocol leading to this error:
FATAL ERROR: Received unexpected end-of-file from server
In order to use pscp with PaSSHport, consider using this syntax including "-scp" flag:
pscp -scp -i "C:\path\to\sshkeys\my_private_key.ppk" "C:\path\to\file\totransfer.txt" [email protected]:TARGET_NAME//pah/to/copy