LONDON, May 25 The dollar hit a two-month high against a basket of currencies on Wednesday on expectations the Federal Reserve will raise rates in the near term, but it gave up gains against the euro on relief that there was progress in Greek bailout talks.