//Connects to ssh protected void connectToSsh() { // parameter:ip, port, main machine name, ssh password (can leave it empty now, need to fix), path to ssh keys - "/home/current_machine_name/.ssh/id_rsa", passphrase sshClient = new Ssh(MAIN_STATION_IP, 2299, "coccp5", "", "/home/coccp5/.ssh/id_rsa", "blockchain5"); sshClient.openConnection(); sshClient.portForwarding(); Console.WriteLine("Connected to Ssh!"); }
private const int NUM_VOTERS = 49; //look at the database for this one. Currently only 49 records in database public MainStationWindow(MultiChainClient importClient, Ssh importSsh, ConnectDB importDB) : base(Gtk.WindowType.Toplevel) { client = importClient; sshClient = importSsh; db = importDB; Console.WriteLine("current logged in user: " + db.getCurrentUser()); this.Build(); }
public VotingWindow(MultiChainClient importClient, Ssh importSsh, ConnectDB importDB) : base(Gtk.WindowType.Toplevel) { client = importClient; sshClient = importSsh; db = importDB; Console.WriteLine("current logged in user: "******"Arial bold 15"); this.votingTitle.ModifyFont(fd); GetCandidateName(); }
public LoginWindow(MultiChainClient importClient, Ssh importSsh, ConnectDB importDB) : base(Gtk.WindowType.Toplevel) { client = importClient; sshClient = importSsh; db = importDB; this.Build(); Pango.FontDescription fd = Pango.FontDescription.FromString("Arial bold 15"); this.titleLabel.ModifyFont(fd); this.passwordEntry.WidthChars = 20; this.userEntry.WidthChars = 20; setStation(); }