New Zealander Vern Cotter, 51, who has been with French club Clermont Auvergne since 2006 and led them to this year's Heineken Cup final, will take over as Scotland coach early in 2014.
"Vern is rightly regarded as one of the top coaches in the world and to have secured someone of his calibre is a coup," Scottish Rugby Union chief executive Mark Dodson said in a statement.
"He was our first choice and we are pleased to have secured him on a two-year contract taking us up to and beyond the Rugby World Cup in 2015. We compiled a short list of world class candidates in December and Vern was top of that list."
Cotter, who led the Canterbury Crusaders to successive Super 14 titles in 2005 and 2006, will assist Scott Johnson during the November internationals and next year's Six Nations before taking over full time for Scotland's mid-season tour.
"I'm absolutely thrilled and honoured to have been appointed," Cotter said.
"Mark Dodson and the team at Scottish Rugby have a strategic vision and a determination to do something very special ... and working with them and a talented group of players and coaches I look forward to the team growing in competitiveness and stature.
"We will build a winning team together."
Johnson, who took over as temporary coach in November after Andy Robinson resigned, was appointed Scotland's director of rugby three weeks ago.
Clermont lost the Heineken Cup final 16-15 to French rivals Toulon in Dublin earlier this month.