cosmestic
This commit is contained in:
parent
11f3c953e2
commit
1672b901d4
@ -59,11 +59,12 @@ genLoop:
|
|||||||
|
|
||||||
var out, privKey, pubKey []byte
|
var out, privKey, pubKey []byte
|
||||||
|
|
||||||
out, err = exec.Command("ssh-keygen",
|
cmd := exec.Command("ssh-keygen",
|
||||||
"-N", "",
|
"-N", "",
|
||||||
"-C", "root@"+host,
|
"-C", "root@"+host,
|
||||||
"-f", outPath,
|
"-f", outPath,
|
||||||
"-t", keyType).CombinedOutput()
|
"-t", keyType)
|
||||||
|
out, err = cmd.CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
err = fmt.Errorf("ssh-keygen failed: %v: %s", err, string(out))
|
err = fmt.Errorf("ssh-keygen failed: %v: %s", err, string(out))
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user