Я хотел бы использовать vim с renci.sshnet. Что я должен делать?
Я хочу использовать его как замазку или терминал.
using renci.sshnet;
//....
using (var ssh = new SshClient("192.168.51.128", "root", "passwd"))
{
try
{
Console.WriteLine("Connected...\n");
ssh.Connect();
Console.WriteLine("walcome server\n");
while (true)
{
string command = Console.ReadLine();
if (command == "" || command == null)
{
command = "\n";
}
SshCommand sshcmd = ssh.RunCommand(command);
Console.WriteLine(sshcmd.Result);
}
ssh.Disconnect();
}
catch (Exception err)
{
Console.WriteLine(err);
}
}
Есть ли более эффективный способ?
Если вы запустите редактор vim, как показано на рисунке, он перестанет отвечать1