A man carrying a knife approached people using ATMs in two separate places and demanded money, but fled when they refused.