Added ssh-key handling for private repositories.