Connecting wallets and then shutdown

Hello,

Let’s say I have connected my ledger wallet to bitcoin node an then another wallet on electrum ie.
After a while my VM stops working for some reason…I rebuild and then how do I get access to those accounts ?

can I say “not your keys not your coins” ?

thanks :smiley: