⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ssh.cs

📁 Hide-Delete icon from ToolBar32 for specific process , from command line arguments. TBBUTTON CSha
💻 CS
字号:
namespace LicenseManage.BaseClasses
{
    class SSH
    {
        //static 
        
        public SSH()
        {
			
        }


        public static string SendSshCmd(string command)
        {//
            // SshStream ssh = new SshStream(IniInfo.HostIp, IniInfo.UserName, IniInfo.pass);
            // ssh.Prompt = "#";
            // ssh.RemoveTerminalEmulationCharacters = true;
            // Console.WriteLine(ssh.ReadResponse());
            try
            {
                //     ssh.Write(command);
            }
            catch (System.Exception e)
            {
                //Console.WriteLine("inner Exception");
                //Console.WriteLine(e.InnerException);
                //Console.WriteLine("Source");
                //Console.WriteLine(e.Source);
                //Console.WriteLine("Exception Message");
                //Console.WriteLine(e.Message);

            }
            
            //ssh.Flush();
            //string responStr = ssh.ReadResponse().Replace(command, "").Replace("[root@localhost ~]#","").Trim();
            //ssh.Dispose();
            //ssh.Flush();
            //ssh.Close();
            //ssh.Dispose();
            //ssh.Dispose();
            
            return "123";
            
        }
        
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -