Cable with connector for hydraulic valve