Anti-King Outside Sudoku

Sudoku with digits shown outside each row and column. Cells that touch as a king moves cannot contain the same digit.
Controls
Solve the sudoku. Every outside digit must appear in the nearest three cells of that row or column.
Logic · Numbers · Deduction · Grid
Brain training · PuzGo