scp copy directory to another server with private key auth

Viewed 132860

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 ?

4 Answers
Related