I would like to use vim with renci.sshnet. What should I do?
I want to use it like a putty or a terminal.
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);
}
}
Is there a more efficient way?
If you run a vim editor, as shown in the picture, it becomes unresponsive1