Lots of checking when setting up ssh keys.