Hi, I try to do a simple command to a Cisco router.
It works fine if I use local username/password, but if I use Tacacs+ to authenticate the user it fails (works fine using putty).
When using SshAuthenticationMethod.Password, the error is "A supplied password or user name is incorrect", this is not correct.
I also changed to AuthenticationMethods=SshAuthenticaionMethod.KeyboardInteractive, but then I get "Interactive authentication cannot continue due to missing request handler."
This is the simple code:
using (var ssh = new Rebex.Net.Ssh())
{
ssh.Settings = new SshSettings()
{
SshParameters= new SshParameters()
{
AuthenticationMethods=SshAuthenticationMethod.Password
}
};
ssh.Connect(host);
ssh.Login(user, pass);
var response = ssh.RunCommand("show int sum");
Console.WriteLine(response);
}