ssh auth: Clean up

This commit is contained in:
Hylke Bons 2016-04-09 08:32:01 -07:00
parent 6b3e78dbf5
commit 06766a57f6

View file

@ -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 ();