ssh: propagate prompt to _communicate()

_communicate() uses the prompt variable to detect wrong passwords early,
therefore it needs to be passed to it from exec_command().
Merge pull request #6787 from tyll/pull_ssh_prompt

ssh: propagate prompt to _communicate()