Use woven stainless steel shielded metal bellow flexible tubing available from Home Depot or Loews in lengths of choice from 1 ft to 15 ft. at about $5 to $15 per length. For more length, add more sections.
DO NOT USE RUBBER BASED FLEXIBLE WATER HOSES EVER FOR ANY PURPOSE – DISHWASHER – CLOTHES WASHER – EVER. Flexible rubber based tubing and water connection have a lifetime that is perdictable at 8-10 years at which time, when you leave home for a 2 week vacation, the line will burst and water will leak until you return to find the basement three feet deep in water and the entire house saturated with liquid and all the household belongings ruined.