Joshing means joking or kidding around, usually at someone else’s expense.
It comes from the writings of the great American humorist Josh Billings, whose caustic humor took on the establishment big shots during the nineteenth century.
As America’s first best-selling author, he was so widely read that his name became synonymous with deflating pompous egos.
So to josh someone took on the meaning “to make fun of.”