My 2KW Honda generator sits secured to the inside of my truck bed near the tail gate. I have the FOLD-A-COVER lockable truck bed cover that completely hides the generator when not in use for thief safety using the OUT-OF-SIGHT security method.
When we need to run our 2KW Generator it is pulled out onto the tail gate and the trailer shore power cable length just fits the generator 120VAC receptacle. I use a HONDA APPROVED dual 30A-15A RV Adapter but a regular RV long 'DOGBONE' type adapter (WALMART) works equally well.
My 2KW Generator being a high thief item goes where I go. NO WAY would I leave this generator sitting attached to my trailer unattended.
If the generator is left in plain sight unattended at the camp site the possibility of thief is very high.. It only takes a couple of minutes to steal it... even in broad daylight... No unattended generator is safe from thief - Most of us like the idea of keeping the generator out-of-sight when not is use and unattended.

In this photo the thieves would either cut through the cable or the plastic handle of the generator...
Pulling the generator out onto the tailgate works great for us directing the exhaust off to the side. If it is inclimate weather i have a simple hood arrangement that extends out over the generator to keep rain off of it. If my truck bed is somewhat empty I can also just leave the generator running under the FOLD-A-COVER bed cover with the tailgate dropped. With all our supplies and items this would be a very rare situation.

This is what we do to be able to re-charge our trailer battery setup to their 90% charge state each morning at 8AM when allowed to run our generator when camping off the power grid... This process only take three hours of generator run time using smart mode charging with our on-board converter/charger being fed by the 2KW generator.
Roy Ken