Remove -t option when calling commands that need sudo as this may cause ssh command execution to hang