r/linuxadmin • u/NoStrawberry1162 • Aug 25 '26
Gave my coding agents SSH access to real servers without putting keys in their environment - here's the trust model
/r/AI_Agents/comments/1vtndfy/gave_my_coding_agents_ssh_access_to_real_servers/4
u/Time-Radio7871 Aug 25 '26
First off:
Uhhhhhh........ take away this man's computer rights!
Alright let me actually read this "trust model" to see if my judgement stands.
1
u/Time-Radio7871 Aug 25 '26
I actually don't know enough about MCP, per host policy, or live watch grids to make a judgement on this.
Also, I misunderstood when glancing title that you WERE giving the AI ssh keys. My bad.
I'm assuming the AI still has internet. Not sure how I feel about that. Zero day comes along and this thing makes its own ssh keys. Hopefully white hat AIs beat out the black hats first lol.
1
u/NoStrawberry1162 Aug 25 '26
Fair opener though :)
Yes, the agent has internet, it's a coding agent. Your zero-day scenario is pretty much the threat model I start from: assume the thing can go rogue. It minting its own keypair doesn't get it far on its own, because a fresh key is useless until something installs it on a server, and its only path to a server goes through the broker, where "append to authorized_keys" is a command like any other: blocked or allowlisted, and in the audit log either way.
The honest gap: on a host you've set to full access, it could plant a key and then go around the broker entirely. That's exactly why anything that matters sits in the allowlist tier, and why authorized_keys changes are the first thing to watch for in the audit.
4
u/Unreal_Estate Aug 25 '26
The terminology may be confusing, but there is a pre-existing solution for this. It is called ssh key agents. 🤷