Here’s an example of using pscp to transfer files to a remote:
pscp -scp -i "C:\Users\User\DG\SSH Keys\jader\droidzone\mykey.ppk" "C:\Users\User\DG\SSH Keys\Latest\mypublic_pub.txt" [email protected]:~/.ssh/
This is a typical usage of scp. I’m transferring my public key to the ssh server, to make further authentications with a key. Here, I specify the current private key (already recognized by the server) with -i option. Alternately, one would use a password authentication.
-scp forces scp mode.
The general syntax is:
source – Is a file or folder name
target is in the format ip address:/destination_directory or hostname:/destination_directory
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.