-func (c *Conn) DialSSH(user, host, sshConfig string) error {
+type SSHConfig struct {
+ Host string
+ User string // optional
+ SshConfig string // optional
+}
+
+func (c *Conn) DialSSH(cfg SSHConfig) error {
}
c.cmd = exec.Command("ssh",
append(append([]string{}, c.sshOpts...),
}
c.cmd = exec.Command("ssh",
append(append([]string{}, c.sshOpts...),