Knowing the connector family is only part of the problem.
I don't know if the JST connector is the one, but note that the ~10 cent housing is just the housing. You still need to buy the ~10 cent crimp pins and supply the wire. In most cases you can "get by" with a needle-nose plier to crimp the wire to the pin and then insert into the housing. Otherwise the magic crimp tool can set you back $50, $100, or whatever.
Or, DigiKey might sell pre-crimped wires (in assorted lengths) though note price for a 2" wire with a crimp pin installed!
As boilermaker1 points out, WS sells various connector/wiring/splicing kits and even spools of wire. It's left to the student to do-the-math to decide your own solution to the question of: does time=money?