Those are plastic hydraulic lines and to be honest, I'd replace them all (2) per motor before one lets loose. It it does, you have hydraulic fluid everywhere (can be an issue if on the water with a spill situation) and you'll loose total steering. The hoses connect to solid lines, you'll need to measure to get the right lengths. You def lost the strain relief on that one. Usually they break at the motor end when they go.
I used these guys... The firm had various lengths and prices were solid. I needed a 4' set and a 7' set. The stock lengths are 4' and 8'. I called and they made up a 7' for me and were great to work with. If in between sizes and don't want to go custom or they can't make up, get the next length up you will have room below to tie down.
www.seatechmarineproducts.com
I changed all four of them and bled the steering in a couple of hours. Use the Seastar hydraulic fluid in quarts and get the funnel kit off Amazon.