Hi
how can I execute the su linux command? I've this code:
public void sshTest()
{
using (var client = new SshClient("host", "myuser", "mypassword"))
{
client.Connect();
var cmd.Execute("su - root");
string errore = cmd.Error;
cmd.Execute("rootpwd");
result = cmd.Result;
client.Disconnect();
}
}
after the command var cmd.Execute("su - root"); the command.Error contains "standard in must be a tty\n". Any suggestion?
thank you
Daniele








