The Navy doesn't have a large presence in Alaska, and I don't believe spends much time in the region beyond some submarines (which stay towards Southeast and the Aleutians). Homer and Juneau were visited earlier this year by USS Hopper.

That said, we do get infrequent visits:
USS Anchorage (LPD-23) docked in Anchorage in 2013 for her commissioning ceremony. She later recovered the Orion spacecraft in December 2014.

USS Alaska visited in 2006 I believe. I attended a function at the Millennium Hotel welcoming the crew and officers.

A US (I believe Virginia-class) cruiser visited the Port of Anchorage in the late 90s as a good will cruise before it was decommissioned. I remember taking a tour of the vessel when it was open to the public, and somewhere still have a picture of the vessel.