Factor out the increasingly complicated SSH-2 channel structure initialisation