retry 5 times for failed ssh/scp network operations