Captain Terrance Riley was a Human Starfleet officer who served as commanding officer of the USS Intrepid in early 2371. Riley was the son of former Starfleet officer Kevin Riley, who served aboard the USS Enterprise in the 2260s.
In 2371, Riley and the Intrepid were ordered to intercept the USS Yorktown, which had been stolen from Starbase 179 by Captain Montgomery Scott, and persuade him to return home instead of entering Romulan space on a mission to rescue Ambassador Spock. Once Scott reminded Riley that his father had served with him and Spock aboard the Enterprise, Riley eventually agreed to let the Yorktown continue on its way. (TNG novel: Crossover)