[cli] Better error message on shh when authentication failed [fixes #49676225]

Also improved some unit tests.
Merge pull request #208 from cloudfoundry/cli_ssh

[cli] Better error message on shh when authentication failed [fixes #49676225]