Log user details used for ssh connections

Also raises an exception if user information is completely missing.