The machine is used for shaking a tree, eg. for harvesting of fruit. It uses two contra-rotating rotors (14) with unbalance weights (14.1) to generate a longitudinal shaking motion which is applied to the trunk (10) of the tree via pressure pads (31). A belt (9) is thrown around the trunk of the tree and tightened to hold the pads firmly against the trunk. The shaking device may be suspended on a chain from a boom mounted on a wheeled chassis or a tractor.