I currently copy files from a Windows server to a Linux server via PSCP using username/password authentication however I need it to use public/private key authentication instead.
I have exhausted the Internet as to why this isn't working for me, please see my command here.
C:\pscp.exe -scp -i "C:\Users\logman\Documents\whosin.ppk" "C:\Net2 Access Control\whos_in_data.html" email@example.com:/var/www/whosin/html
I have generated the public/private keys on the Windows server and copied the public key to the Linux server and in the authorized_keys file. The private key is in .ppk format in the above location on the Windows machine.
What am I doing wrong?