autumncry
V2EX  ›  问与答

求助:远程登录 Linux 服务器后如何使用 antigravity

  •  
  •   autumncry · Mar 18 · 970 views
    This topic created in 100 days ago, the information mentioned may be changed or developed.

    本地使用站内大佬的 antify +clash 可以正常使用 antigravity 的右侧 agent ,但是在用 antigravity 的远程开发连接 linux 服务器后,agent 无法使用,发送文字后直接闪一下又恢复空白等待输入的界面,像是什么都没发生,无论选择什么模型都是如此。

    请问该如何配置? linux 服务器也必须能访问外网才可以用 agent 么?

    yougg
        1
    yougg  
       Mar 18
    公司局域网的 Linux 服务器都没有外网权限, 在本地开发机运行 Antigravity, 需要在远程 Linux 服务器上部署/运行/调试时, 都让 Antigravity 直接执行 ssh 远程命令.

    先给本机到远程服务器配置好 ssh 信任, 后续执行命令时免密码

    ```shell
    ssh-copy-id root@remote-ssh-host
    ```

    在 Antigravity 的规则文件中添加描述:
    - 替换远程测试环境上的 xxxxx 服务: scp ./xxx root@remote-ssh-host:/path/to/xxxxx
    - 重启远程测试环境上 xxxxx 服务状态: ssh root@remote-ssh-host: 'systemctl restart xxxxx'
    - 查看远程测试环境上 xxxxx 服务状态: ssh root@remote-ssh-host: 'systemctl status xxxxx'
    - 查看远程测试环境上 xxxxx 服务的日志: ssh root@remote-ssh-host: 'tail /var/log/xxxxx.log'
    - ......
    - ......

    后续在 vibe coding 交互时告诉 Antigravity 到 remote-ssh-host 环境部署调试 xxxxx 服务.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2508 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 53ms · UTC 00:49 · PVG 08:49 · LAX 17:49 · JFK 20:49
    ♥ Do have faith in what you're doing.