Their bodies were found in their room at the La Palm Royal Beach Hotel in Accra on New Year's Eve, said the high-ranking official at Ghana's Tema Naval Base, who did not want to be named because he is not authorized to speak to the press.
The sailors were stationed aboard the USS Fort McHenry, which is on a seven-month voyage through the Gulf of Guinea aimed at training local law enforcement on maritime security.
"Three of them went out and checked in at La Palm Beach Hotel on Dec. 31 and on the next day, the third sailor found the two dead in their rooms and duly reported this to the hotel authorities," the official said.
There was no evidence of a robbery or of an attack on the sailors, he said.
A spokeswoman for the U.S. Embassy in Ghana said the names of the dead sailors would not be released until their families have been contacted.