support mosh with c2g command