After GO went to Edo (present-day Tokyo) to serve yonin (officer handling domestic economy) of the Ogaki Domain in 1845, he frequently changed the person whom he served including hatamoto (direct retainers of the bakufu), after which serving as officer in charge of storage room, of the Nagasaki bugyo Gisei MAKI, he handled receiving the visit from the Netherlands envoy in 1853 and later on he took office as yonin for the Hakodate bugyo Toshihiro HORI to attend him on a tour to Sakhalin and Ezochi (inhabited area of Ainu), encountering a variety of foreign issues; moreover, his rich foreign experience was thought highly of by the magistrates of Osaka Town Tadayoshi TORII to be selected for a chief retainer of the Torii family in charge of trade issues.
弘化元年（1845年）江戸に出て大垣藩用人に武家奉公した後に旗本など奉公先を転々とするが、長崎奉行牧義制の納戸役として嘉永5年（1853年）のオランダ使節来訪問題に対応し、続いて箱館奉行堀利煕の用人としてその樺太・蝦夷地巡回に随行するなど対外問題に遭遇、更にその経験を大阪町奉行鳥居忠善に買われて貿易問題を担当して同家の家老として抜擢された。