> ## Documentation Index
> Fetch the complete documentation index at: https://ikun.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# SSH 访问

SSH 访问是开发者工作流程的重要组成部分。

## 开发 SSH 访问

使用 `docker exec` 命令 SSH 进入开发容器

```bash theme={null}
docker exec -it ai-api zsh
```

## 生产环境 SSH 访问

您的 ECS 任务已启用 SSH 访问。使用以下命令 SSH 进入生产环境容器：

```bash theme={null}
ECS_CLUSTER=ai-app-prd-cluster
TASK_ARN=$(aws ecs list-tasks --cluster ai-app-prd-cluster --query "taskArns[0]" --output text)
CONTAINER_NAME=ai-api-prd

aws ecs execute-command --cluster $ECS_CLUSTER \
    --task $TASK_ARN \
    --container $CONTAINER_NAME \
    --interactive \
    --command "zsh"
```
