STRUCT SSH_COMMAND(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct ssh_command(9) πŸ’…

okay so bestie, we're deep in the Kernel API Manual today and the star of the show is struct ssh_command β€” it's literally the payload of a command-type frame. that's the whole vibe. it's the lil' bundle of bytes that rides inside an SSH frame when the frame is carrying a command. iconic behavior honestly πŸŽ€


✨ NAME ✨

struct ssh_command β€” Payload of a command-type frame. yes that's it. that's the name. short, sweet, ate. πŸ’–


🌸 SYNOPSIS 🌸

struct ssh_command {
    u8 type;
    u8 tc;
    u8 tid;
    u8 sid;
    u8 iid;
    __le16 rqid;
    u8 cid;
 };

look at it. seven little fields. so demure. so mindful. πŸ¦‹


πŸ‘‘ Members πŸ‘‘

okay so let's meet the cast, because every single one of these matters and i'm not skipping a single one of them, periodt:

  • type β€” the type of the payload. peep enum ssh_payload_type for the full menu. for this struct it should be SSH_PLD_TYPE_CMD. like, that's its whole personality. πŸ’…
  • tc β€” command target category.
  • tid β€” Target ID. it's the field that indicates the target of the message. iykyk. 🎯
  • sid β€” Source ID. indicates the source of the message. who sent it, basically. 🫢
  • iid β€” Instance ID.
  • rqid β€” Request ID. this one's a lil' matchmaker πŸ’– it's used to match requests with responses and to differentiate between responses and events. lowkey the most socially connected field in here.
  • cid β€” Command ID.

πŸ”₯ SEE ALSO πŸ”₯

the friend group. the whole group chat. no cap, here's every single one:


reminder bestie: type should be SSH_PLD_TYPE_CMD for this struct β€” that's straight from the page, not me being dramatic (okay it's a little me being dramatic but it's also true πŸ’€).

🌈 and that's the whole page, mwah πŸ’‹ this one came from ./include/linux/surface_aggreg... and it's dated October 2026 β€” so yeah, future vibes only. catch you in the next manpage, bestie! πŸ§šπŸ’œ

πŸ“¦ where this page comes from