"ruderich.org/simon/safcm/remote"
)
-func (c *Conn) DialSSH(remote string) error {
+func (c *Conn) DialSSH(user, host string) error {
if c.events == nil {
return fmt.Errorf("cannot reuse Conn")
}
+ remote := host
+ if user != "" {
+ remote = user + "@" + host
+ }
c.debugf("DialSSH: connecting to %q", remote)
opts := "-eu"