I get a permissions denied but don\'t know why. From my jenkins master I was able to run the following command using ssh-rsa-key
scp /var/cache/jenkins/war/WEB-INF
If you changed a user to connect to slave, please also make sure slave destination directory is empty (not containing slave.jar copied there by previous user). This is kind of stupid, but costed me a time.