How to Configure Devin SSH Permissions
You set up devin ssh permissions by making a limited Linux user account. Then you give the AI agent an OpenSSH key or signed certificate. Teams often start by giving an AI agent a broad admin key. That fast setup lets the agent fix code and check server state right away. Yet a broad key gives the agent full power on the remote host. If the agent makes a mistake, it can delete files or break apps. How to set up devin ssh permissions on Linux hosts A safer setup starts with a dedicated user ac
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
You set up devin ssh permissions by making a limited Linux user account. Then you give the AI agent an OpenSSH key or signed certificate.
Teams often start by giving an AI agent a broad admin key. That fast setup lets the agent fix code and check server state right away. Yet a broad key gives the agent full power on the remote host. If the agent makes a mistake, it can delete files or break apps.
How to set up devin ssh permissions on Linux hosts
A safer setup starts with a dedicated user account on the target server. You create a new Linux user just for the AI agent to use. You do not add this user to the admin group on the host. Instead, you give the account read rights on logs and specific app folders.
Next, you set up key login so the agent can log in safely. Static public keys work, but OpenSSH user certificates offer much better control. OpenSSH added user and host certificates in version 5.4 with a simple format. A certificate Authority key signs the agent public key to make a certificate.
That signed certificate holds the public key, an identity string, and principal names. Principals list the exact user names the certificate can use to log in. You also set a time window when you sign the user certificate. By default, a signed OpenSSH certificate stays valid forever if you skip this. Always set a short window so the agent key expires after the task.
What native SSH rules solve and what they miss
Certificate options and Linux file rules solve the first part of host safety. They decide which server the agent can reach and when it logs in. You can also add certificate options to limit port forwarding or agent forwarding. You can even lock the certificate to one set of source IP addresses. If you use a bastion or jump host, you can centralize these checks.
SSH Access Management + AI Agent Permissions: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Still, native SSH rules only check the user at the front door. Once the session starts, the OS only checks basic file and folder rights. Native SSH rules cannot read the stream of shell commands in flight. If the agent has write rights to an app folder, it owns it. The host cannot tell a safe update from a bad file delete command.
Also, standard SSH logs only show when a user logs in and out. They do not track every shell command or filter sensitive data in outputs. If an agent reads a file with emails, phone numbers, or card numbers, those raw values flow right into the agent context window. Teams need command-level rules and data masking that rewriting matched fields in results.
Add command and file guardrails to SSH access
Host firewalls and certificate principals control who opens an SSH session. Yet an allowed user or agent can still run a bad one-shot command or pull sensitive files over sftp. In practice, hoop.dev provides an open-source SSH server with guardrails on the host that uses OpenSSH certificates.
Using hoop.dev SSH controls, guardrails check one-shot commands, env variable names, and sftp or scp paths before they run. Port forwards default to deny unless the target is listed. Because interactive shells have no statement boundary and carry no guardrails, teams can turn them off so every command is checked and logged. Check out the MIT-licensed project on GitHub.
Frequently asked questions
Should an AI agent share an SSH key with a human engineer?
No, you should never let an AI agent share a human SSH key. Give the agent its own user account and its own signed certificate. This separates agent actions from human work in your host logs.
Why use OpenSSH certificates instead of static public keys for Devin?
Static keys stay on the server until someone removes them by hand. OpenSSH certificates let you set a short time window and clear user principals. When the time window ends, the certificate stops working without manual cleanup.
Can Linux file permissions stop an AI agent from reading secret data?
Linux file permissions only block whole files that the user cannot read. If the agent needs to read a log file, it sees everything inside. Native file rules cannot mask emails, phone numbers, or national IDs inside outputs.
Related guides
In this post