Pass sudo password hook to SshConnection

Pass it as a hook instead of the value to avoid asking it from the user in case it is not needed.

Fixes #294