A solid shaft is forced into a hollow hub, and the elastic squeeze generates a contact pressure on the interface. Inward and outward arrows show the squeeze, the rotating arrow is the transmitted torque, and the interface resists it by friction.
$$p=\frac{E\,\delta\,(D^{2}-d^{2})}{2\,d\,D^{2}},\qquad T=\frac{\mu\,p\,\pi\,d^{2}\,L}{2}$$
p is the contact pressure produced by a diametral interference δ, and T is the torque transmitted by friction. d: shaft diameter, D: hub outer diameter, E: Young's modulus, µ: friction coefficient, L: engagement length.
$$F=\mu\,p\,\pi\,d\,L,\qquad \sigma_{\text{hub}}=p\,\frac{D^{2}+d^{2}}{D^{2}-d^{2}}$$
F is the axial push-out holding force and σ_hub is the maximum hoop stress at the hub bore (the interface). This bore stress must always stay below the material's yield strength.