Agent在专用workspace里干活,想用本地编辑器翻代码,不必每次手搓ssh命令。Sandscale团队给出的做法只有一行:
sandscale workspace ssh-config agent-search >> ~/.ssh/config
CLI(1.4.1)的ssh-config只负责显示正在运行的workspace的Host块,并不会自己写进文件。按上面的写法追加一次,之后就能直接用ssh进入;帮助文档里提到,这个Host块也会出现在VS Code的Remote-SSH和Cursor的主机列表里。
这个块里既没有密钥也没有令牌。每次连接时,CLI会用短期有效的证书完成签名,所以不需要登记SSH密钥。Agent有三个,就追加三次。
特别声明:以上内容(如有图片或视频亦包括在内)为自媒体平台“网易号”用户上传并发布,本平台仅提供信息存储服务。
Notice: The content above (including the pictures and videos if any) is uploaded and posted by a user of NetEase Hao, which is a social media platform and only provides information storage services.