Connecting to shell by specific structure