rewrite ssh for update