---
title: "Update SSH server"
description: "Toggle SSH access for an app."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.stackmachine.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update SSH server

```javascript
const sshServer = await client.apps.ssh.update("da_XYZ", {
  enabled: true, // false = disable SSH for this app
});
// Should return: {
//   "id": "ssh_server_abc",
//   "enabled": true
// }
console.log(sshServer.enabled);
```

```python
server = client.apps.ssh.update(
    "da_XYZ",
    enabled=True,  # False = disable SSH for this app
)
# Should return: {
#   "id": "ssh_server_abc",
#   "enabled": true
# }
print(server.enabled)
```

> Source: [stackmachine/sdks](https://github.com/stackmachine/sdks/tree/main) examples.

Source: https://docs.stackmachine.com/apps/ssh/update-server/index.mdx
