This is a 6 pin JST XH Male connector. This is a wire to board connector. It is a crimp style connector, and a disconnectable type.
The wires needs to be crimped to terminal, which in turn can be fitted into this female connector, which will be connected to male connector soldered on any board.
It has a good locking mechanism, and requires force to remove the female connector from male connector on board. There by removes the problem of unwanted disconnection.
Ideal for rechargeable battery packs, radio-controlled servos, etc.