ssh auth: Clean up
This commit is contained in:
parent
6b3e78dbf5
commit
06766a57f6
|
@ -101,12 +101,11 @@ namespace Sparkles {
|
||||||
"-C \"" + computer_name + " (SparkleShare)\" " + // Key comment
|
"-C \"" + computer_name + " (SparkleShare)\" " + // Key comment
|
||||||
"-f \"" + key_file_name + "\"";
|
"-f \"" + key_file_name + "\"";
|
||||||
|
|
||||||
var process = new Command ("ssh-keygen", arguments);
|
var ssh_keygen = new Command ("ssh-keygen", arguments);
|
||||||
process.StartInfo.WorkingDirectory = Path;
|
ssh_keygen.StartInfo.WorkingDirectory = Path;
|
||||||
process.Start ();
|
ssh_keygen.StartAndWaitForExit ();
|
||||||
process.WaitForExit ();
|
|
||||||
|
|
||||||
if (process.ExitCode == 0) {
|
if (ssh_keygen.ExitCode == 0) {
|
||||||
Logger.LogInfo ("Auth", "Created key pair: " + key_file_name);
|
Logger.LogInfo ("Auth", "Created key pair: " + key_file_name);
|
||||||
ImportKeys ();
|
ImportKeys ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue