1630s, "knowing wise," Scottish and northern English formation from can (v.1) in its sense of "know how to," + -y (2). A doublet of cunning that flowed into distinct senses. "Knowing," hence, from 18c., "careful, skillful, clever," also "frugal, thrifty," and, from early 19c. (perhaps from Scott's novels) "cautious, wary, shrewd." Often used superciliously of Scots by their southern neighbors (and their American cousins).
The Canny Scot is so well known as scarcely to require description. He carries caution, cunning, and selfishness to excess. Deceitful when a purpose is to be accomplished, he is not habitually deceitful. One thing he never loses sight of--his own interest. But of his own interest he is not the most enlightened judge. ["The Natural History of Scotsmen," in "The Argosy," December 1865]Related: Cannily; canniness.