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" jenkinsslave@172.1.1.1:/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?

share|improve this question
1 
Can you provide logs from either side?– djsmiley2kApr 5 '17 at 14:57
   
"Server rejected our key" - This is using the .ppk from Windows to PSCP via Putty's GUI (to accept the key for the first time)– jtoApr 5 '17 at 15:00
   
I believe this could be due to Putty's .ppk private key format, whereas ssh on the Linux server is using Open-SSH I believe.– jtoApr 5 '17 at 15:02
   
Sorry forgot to tag @djsmiley2k– jtoApr 5 '17 at 15:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.