Set correct SSH_DIR permissions, fixes #116