Magnetic skyrmions in bulk materials are typically regarded as two-dimensional structures. However, they also exhibit three-dimensional configurations, known as skyrmion tubes, that elongate and extend in-depth. Understanding the configurations and stabilization mechanism of skyrmion tubes is crucial for the development of advanced spintronic devices. However, the generation and annihilation of skyrmion tubes in confined geometries are still rarely reported. Here, we present direct imaging of skyrmion tubes in nanostructured cuboids of a chiral magnet FeGe using Lorentz transmission electron microscopy (TEM), while applying an in-plane magnetic field. It is observed that skyrmion tubes stabilize in a narrow field-temperature region near the Curie temperature (Tc). Through a field cooling process, metastable skyrmion tubes can exist in a larger region of the field-temperature diagram. Combining these experimental findings with micromagnetic simulations, we attribute these phenomena to energy differences and thermal fluctuations. Our results could promote topological spintronic devices based on skyrmion tubes.