import (
"flag"
"fmt"
+ "io/fs"
"log"
"os"
"os/signal"
wg.Done()
}()
+ helpers, err := fs.Sub(RemoteHelpers, "remote")
+ if err != nil {
+ conn.Kill()
+ return err
+ }
+
// Connect to remote host
user := s.host.SshUser
if user == "" {
user = s.config.SshUser
}
- err := conn.DialSSH(rpc.SSHConfig{
- Host: s.host.Name,
- User: user,
- SshConfig: s.config.SshConfig,
+ err = conn.DialSSH(rpc.SSHConfig{
+ Host: s.host.Name,
+ User: user,
+ SshConfig: s.config.SshConfig,
+ RemoteHelpers: helpers,
})
if err != nil {
conn.Kill()