It all depends on your actual passport.
Turkey: super easy! rent an apartment (one year contract) and get their "touristic visa" (ikamet https://e-ikamet.goc.gov.tr/ ) which last two years, and is a visa that let you be "resident" there while keeping your resident wherever it is (where you pay taxes). If you are a sailor, a one year contract in a marina (any size of boat) will let you have 2 year touristic residency.
as for Europe you could stay up to 6 months, then a French (idiot) administration started a fight with a romenian citizen and ... the result is that now if you stay 3 months, then you have to stay 3 months out (the EU, another smelly group of bureaucrats unable to write a clear law and scared of losing votes, confirmed)... anyhow, let's do not touch the issue, or I get so mad and embarrassed of it.
so... europe, you can go there as a tourist: of couse you will do your remote job, and nobody will care.
you mention money: ahahah, big solution, even if you come from the poorest/most terrorist country in the world:
1. you either have no money, so, in that case, you have to cross the med in a shitty boat, pay a lot of $$$ to human traffiker, so sure risk your life... just to realize it will take you 10 years to be able to have a decent living (if you make it), or
2. just pay and (legally) get our EU passport: YES it is so easy: you can get the passport just by paying for it: it sound and it is hypocritical but this is the simple truth: and it is not just Malta, search yourself.
Let me add, just to be clear, that this whole EU fortress if a monument to hypocrisy: of course it is not easy to just open borders (since of course we, european, want to keep being the privileged taking advantage of all the poors in the world, while wearing a tie or a smoking, or a Cristian priest dress) but you cannot really put together the "no border" model of the internet, and the stupid 3 months only visa a relative of yours (or even your wife) is obliged to respect.
respect my ass!