

StrCommand = "\"C:/windows/sysnative/OpenSSH/ssh.exe\" -l " + strLogin + " " + strHost StrCommand = "\"C:/windows/sysnative/OpenSSH/ssh.exe\" -l " + strLogin + " " + "-i " + strCert + " " + strHost

If the password cell is empty, start the terminal with certificate Private void gridHosts_CellDoubleClick(object sender, DataGridViewCellEventArgs e) When the user double-clicks a cell, launch the terminal String strHeaderCaptionText = column.HeaderText Private void showAllToolStripMenuItem_Click(object sender, EventArgs e)įoreach (DataGridViewColumn column in gridHosts.Columns) When the user chooses Show All, all hidden columns will become visible With the settings that were saved last time the app was used Change the size and the position of the application on load StreamReader fileReader = new StreamReader(strFileName, false) Clear the grid and load the pusshy.csv file Int intColCount = įoreach (DataGridViewRow dataRowObject in gridHosts.Rows) Int intColumnCount = gridHosts.ColumnCount - 1 StreamWriter csvFileWriter = new StreamWriter(strFileName, false) Var strFileName = strLocalAppData + "/pusshy/" + "pusshy.csv" The data is in pusshy.csv file under C:\Users\\AppData\Local\pusshy Var strLocalAppData = Environment.GetFolderPath() The local app data folder where settings and the data will be saved Used to remember these settings when the program is started next time Save the current size and position of the window Private void frmpusshy_FormClosed(object sender, FormClosedEventArgs e) Return base.ProcessCmdKey(ref msg, keyData) Protected override bool ProcessCmdKey(ref msg, keyData) It allows horizontal scrolling when typing, not vertical When a user hits enter, the next selected cell is on the right, not the bottom one It holds the name of the header column when a cell is right-clicked set key="c:\folder\mykey.pem"Ĭmd /c icacls %key% /c /t /grant %username%:FĬmd /c icacls %key% /c /t /remove Administrator BUILTIN\Administrators BUILTIN Everyone System Users "Authenticated Users" Do this from a command prompt, not from a Power Shell prompt. In case you get an error that your PEM certificate is wide open, change the permissions on that file. It’s not meant to be a replacement for putty or any other SSH terminal programs. It’s a very simple SSH GUI front-end for OpenSSH. NET program that manages SSH connections.

I had to use OpenSSH in some of the scripts at work, but managing the connections became difficult. As of late 2018, Windows 10 and Windows 2019 come up with OpenSSH installed.
