I can transfer file using PSCP:
C:\>pscp -pw <password> -r -p <path of the file> user@Server:<path file to stored>
But not using the public/private key.
Steps followed:
Generate public and private keys using PuTTYgen.
Copy the public key to authorized_keys of Remote Server
Save the private key to key.ppk in Windows server
Then
C:\>pscp -i privatekey pathofthefile user@server:pathfiletostored
It gives "Fatal: Network error: Connection refused"
Can someone please help?