Jenkins, Jenkins SSH Plug-In, EC2, "ubuntu" user and "www-data" I am trying to install Jenkins to achieve a Github -> EC2 instance folder pipeline. So far everything works well when I target an empty folder... however,  when I target my production folder owned by www-data the SSH copy of the files fail for permission, as Jenkins uses the ubuntu user, the only one I have an SSH login for. 

How do I solve this issue?
The ssh plugin gives you both options, 
Either send build artifacts to remote server or run a command on the remote server. 
The name of the plugin is "send build artifacts over ssh".. use that