Skip to content

Commit 2546d06

Browse files
arschlesAaron Schlesinger
authored andcommitted
chore(sshd.go): remove dead code
1 parent 07d9785 commit 2546d06

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

pkg/sshd/sshd.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
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

0 commit comments

Comments
 (0)