docs: add Cursor Agent SSH access instructions for NODE1
- Add detailed SSH connection guide for Cursor agents - Include common commands, safety checks, and troubleshooting - Add interactive session example and best practices - Update INFRASTRUCTURE.md with section for Cursor agents - Update infrastructure_quick_ref.ipynb with SSH access configuration - Provide complete workflow examples for remote operations Co-Authored-By: Warp <agent@warp.dev>
This commit is contained in:
@@ -210,7 +210,76 @@
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## 🎨 Vision Encoder Service (NEW)\n",
|
||||
"🤖 Для агентів Cursor: SSH доступ до НОДА1\n",
|
||||
"\n",
|
||||
"### Підключення до Production Server\n",
|
||||
"\n",
|
||||
"**SSH команда:**\n",
|
||||
"```bash\n",
|
||||
"ssh root@144.76.224.179\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"**Робоча директорія:** `/opt/microdao-daarion`\n",
|
||||
"\n",
|
||||
"**Важливо:**\n",
|
||||
"- SSH ключ має бути налаштований локально\n",
|
||||
"- Працюєте від імені `root`\n",
|
||||
"- Завжди перевіряйте `hostname` і `pwd` перед виконанням команд\n",
|
||||
"- Не виконуйте деструктивні команди без підтвердження\n",
|
||||
"\n",
|
||||
"**Повна інструкція:** див. `INFRASTRUCTURE.md` → Для агентів Cursor"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# SSH Access for Cursor Agents\n",
|
||||
"NODE1_ACCESS = {\n",
|
||||
" \"host\": \"144.76.224.179\",\n",
|
||||
" \"user\": \"root\",\n",
|
||||
" \"ssh_command\": \"ssh root@144.76.224.179\",\n",
|
||||
" \"project_root\": \"/opt/microdao-daarion\",\n",
|
||||
" \"auth\": \"SSH key (configured locally)\",\n",
|
||||
" \"common_commands\": [\n",
|
||||
" \"docker ps\",\n",
|
||||
" \"docker compose ps\",\n",
|
||||
" \"docker logs <container_name> --tail 50\",\n",
|
||||
" \"git status\",\n",
|
||||
" \"git pull origin main\",\n",
|
||||
" \"systemctl status docker\"\n",
|
||||
" ],\n",
|
||||
" \"safety_checks\": [\n",
|
||||
" \"Always verify hostname before executing commands\",\n",
|
||||
" \"Never use 'rm -rf' without confirmation\",\n",
|
||||
" \"Never use 'docker rm -f' on production containers\",\n",
|
||||
" \"Always check current directory with 'pwd'\",\n",
|
||||
" \"Document all changes in git commits\"\n",
|
||||
" ]\n",
|
||||
"}\n",
|
||||
"\n",
|
||||
"print(\"🔐 SSH Access to NODE1:\")\n",
|
||||
"print(\"=\"*60)\n",
|
||||
"print(f\"Host: {NODE1_ACCESS['host']}\")\n",
|
||||
"print(f\"User: {NODE1_ACCESS['user']}\")\n",
|
||||
"print(f\"Command: {NODE1_ACCESS['ssh_command']}\")\n",
|
||||
"print(f\"Project: {NODE1_ACCESS['project_root']}\")\n",
|
||||
"print(f\"Auth: {NODE1_ACCESS['auth']}\")\n",
|
||||
"print(\"\\nCommon Commands:\")\n",
|
||||
"for cmd in NODE1_ACCESS['common_commands']:\n",
|
||||
" print(f\" - {cmd}\")\n",
|
||||
"print(\"\\n⚠️ Safety Checks:\")\n",
|
||||
"for check in NODE1_ACCESS['safety_checks']:\n",
|
||||
" print(f\" • {check}\")\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"⌘ Vision Encoder Service (NEW)\n",
|
||||
"\n",
|
||||
"### Overview\n",
|
||||
"- **Service:** Vision Encoder (OpenCLIP ViT-L/14)\n",
|
||||
|
||||
Reference in New Issue
Block a user