Linux ssh deployments

I am trying to ssh into linux and have created a user called OctopusDeploy-qa and giving it sudo access. When adding the environment and running a health check, I get this error. How can I solve it? It appears I need to be able to run as sudo but I’m not sure how to do that via the octopus interface

Failed to create directory $HOME/.octopus/OctopusServer/Work/20170721130657-3 to upload file command.sh.
July 21st 2017 09:06:58Error
mkdir: cannot create directory ‘/home/OctopusDeploy-qa/.octopus’: Permission denied
July 21st 2017 09:06:58Error
Failed to create directory $HOME/.octopus/OctopusServer/Work/20170721130657-3 to upload file health-check.sh.
July 21st 2017 09:06:58Error
mkdir: cannot create directory ‘/home/OctopusDeploy-qa/.octopus’: Permission denied
July 21st 2017 09:06:58Error
/bin/bash: /home/OctopusDeploy-qa/.octopus/OctopusServer/Work/20170721130657-3/command.sh: No such file or directory
July 21st 2017 09:06:58

I resolved this issue. I created the .octopus file in the ~/OctopusDeploy-qa/ directory and used chown to give it full ownership. I also installed mono-complete so that mono could execute. This fully resolved the issues that i was having