Fixed the ssh keys handling