File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 "fmt"
99 "io/ioutil"
1010 "os"
11- "os/exec"
1211 "strings"
1312
1413 "golang.org/x/crypto/ssh"
@@ -151,21 +150,6 @@ func compareKeys(a, b ssh.PublicKey) bool {
151150 return subtle .ConstantTimeCompare (a .Marshal (), b .Marshal ()) == 1
152151}
153152
154- // Start starts an instance of /usr/sbin/sshd.
155- func Start (c cookoo.Context , p * cookoo.Params ) (interface {}, cookoo.Interrupt ) {
156- dargs := []string {"-e" , "-D" }
157-
158- sshd := exec .Command ("/usr/sbin/sshd" , dargs ... )
159- sshd .Stdout = os .Stdout
160- sshd .Stderr = os .Stderr
161-
162- if err := sshd .Start (); err != nil {
163- return 0 , err
164- }
165-
166- return sshd .Process .Pid , nil
167- }
168-
169153// Configure creates a new SSH configuration object.
170154//
171155// Config sets a PublicKeyCallback handler that forwards public key auth
You can’t perform that action at this time.
0 commit comments