Added ssh authentication 

And throw an exception if attempting to login not over a secure connection