Code in most locations requires an interlock if you don't have an ATS. This is mine.
View attachment 473100
Either the main breaker or the generator feed can be closed, but not both. This way there's no possible way for me to back feed the grid and blow up my meter or worse, kill a line worker.
Don't just wire a 220V outlet, look for a generator inlet, like this.
Kohree 50Amp Generator Power Inlet Box, NEMA SS2-50P for 3R Generator Cord Receptacle, 125/250V,12500W RV Weatherproof Generator Transfer Switch Inlet Box, ETL Listed https://www.amazon.com/dp/B08X1QNGJG/?tag=wranglerorg-20
That way you don't have to do any cowboy stuff...
View attachment 473102
After more research, and my panel being full, I think transfer switch is the way to go. Looking at something like this https://www.amazon.com/dp/B008KNXJXE/?tag=wranglerorg-20