Freighthopping or trainhopping is the act of surreptitiously boarding and riding a freightcar, which is usually illegal.
Freighthopping