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