How to Stop a Wooden or Metal Bed from Squeaking

The one thing I really hate about travel is sleeping in rickety hotel beds. Just recently, I laid down onto a hotel bed after a long trip only to be met with persistent squeaking