// // Copyright 2026 The InfiniFlow Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // // ssh.go is the Go port of `agent/sandbox/providers/ssh.py`. // // SSHProvider runs the user's code on a remote host via SSH. The // Go equivalent of Python's `paramiko` library is // `golang.org/x/crypto/ssh`. The provider opens a single SSH // client per CodeExec, creates a remote work_dir under the // configured base, uploads the wrapped code, runs the script // via `cd &&