Putty doesn't use openssh key files - there is a utility in putty suite to convert them.
edit: it is called puttygen
Pregunta
is there something wrong with this scp command ?
scp -C -i ./remoteServerKey.ppk -r /var/www/* root@192.168.0.15:/var/www
I use the same .ppk as in putty and enter the same passphrase, but it asks me 3 times and than says connection denied. I thought I used it before and it worked, but it isn´t atm. If it is wrong, how should I do it ?
Solución 3
Putty doesn't use openssh key files - there is a utility in putty suite to convert them.
edit: it is called puttygen
Otros consejos
or you can also do ( for pem file )
scp -r -i file.pem user@192.10.10.10:/home/backup /home/user/Desktop/
Covert .ppk to id_rsa using tool PuttyGen, (http://mydailyfindingsit.blogspot.in/2015/08/create-keys-for-your-linux-machine.html) and
scp -C -i ./id_rsa -r /var/www/* root@192.168.0.15:/var/www
it should work !
The command looks quite fine. Could you try to run -v (verbose mode) and then we can figure out what it is wrong on the authentication?
Also as mention in the other answer, maybe could be this issue - that you need to convert the keys (answered already here): How to convert SSH keypairs generated using PuttyGen(Windows) into key-pairs used by ssh-agent and KeyChain(Linux) OR http://winscp.net/eng/docs/ui_puttygen (depending what you need)