fetcher: add some more debug rules for fetching the host key
This commit is contained in:
parent
2e6830f1f1
commit
b81fa4f0c6
|
@ -128,7 +128,9 @@ namespace SparkleLib {
|
|||
host_key = FetchHostKey ();
|
||||
|
||||
if (string.IsNullOrEmpty (RemoteUrl.Host) || host_key == null) {
|
||||
SparkleLogger.LogInfo ("Auth", "Could not fetch host key");
|
||||
Failed ();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -272,6 +274,8 @@ namespace SparkleLib {
|
|||
else
|
||||
process.StartInfo.Arguments = "-t rsa -p " + RemoteUrl.Port + " " + RemoteUrl.Host;
|
||||
|
||||
SparkleLogger.LogInfo ("Cmd", process.StartInfo.FileName + " " + process.StartInfo.Arguments);
|
||||
|
||||
process.Start ();
|
||||
string host_key = process.StandardOutput.ReadToEnd ().Trim ();
|
||||
process.WaitForExit ();
|
||||
|
|
Loading…
Reference in a new issue