Answers for "ssh.net sshpass"

0

ssh.net sshpass

SshClient client = new SsClient(IP_server, username, password);
client.Connect();
var commandToSend = client.CreateCommand("sshpass -p \"password\" sudo iptables -L");
commandToSend.Execute();
string response = commandToSend:Result.ToString();
Console.WriteLine("Response: " + response);
Posted by: Guest on October-19-2021

Browse Popular Code Answers by Language