ssh: reorder apis' ssh keys in order of preference