private static void PrintPuttySSH() { try { Beaprint.MainPrint("Putty SSH Host keys"); List <Dictionary <string, string> > putty_sess = Putty.ListPuttySSHHostKeys(); Dictionary <string, string> colorF = new Dictionary <string, string>() { { ".*", Beaprint.ansi_color_bad }, }; Beaprint.DictPrint(putty_sess, colorF, false, true); } catch (Exception ex) { Beaprint.GrayPrint(string.Format("{0}", ex)); } }
private static void PrintPuttySess() { try { Beaprint.MainPrint("Putty Sessions"); List <Dictionary <string, string> > putty_sess = Putty.GetPuttySessions(); Dictionary <string, string> colorF = new Dictionary <string, string>() { { "ProxyPassword.*|PublicKeyFile.*|HostName.*|PortForwardings.*", Beaprint.ansi_color_bad }, }; Beaprint.DictPrint(putty_sess, colorF, true, true); } catch (Exception ex) { Beaprint.GrayPrint(string.Format("{0}", ex)); } }