I run ssh/mosh on a Linux laptop to my Mac desktop all day every day. I suspend the laptop every night, and when I open it in the morning, it immediately reconnects.
I run tmux (locally, nesting another session on the Mac) but I don't think that would make a difference here.
I'm not aware of any special config, but I've been using this setup for several years with no major adjustments.