Fixed bug where there which caused ssh-key not to work