@luna70 You generally owe taxes wherever you are a tax resident. So I suspect you'd have to have residency in country B and not in A, in order for A to forego taxing you.
So even if you open an account in B, the income is taxable in A if you are still a tax resident in A.
But this is just a...