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
Granting
sudo chmod -R 777 /var/lib/jenkins
works for me