ssh works but not scp - Permission denied (publickey)

I am able to ssh into a remote server

ssh -i "C:\Users\kong\Documents\prl.ppk" haziq@10.0.1.111

but not able to scp

scp -i "C:\Users\kong\Documents\prl.ppk" kong@10.0.1.111:~/home_nfs/kong/script/train.py "./script"

but get this message

Load key "C:\\Users\\kong\\Documents\\prl.ppk": invalid format
Permission denied (publickey).

How do I fix this?

2 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like