With the valid password, we are unable to execute sudo
commands from the ssh agent. We are getting "Sorry, try again". The same password works in the server.
What could be the problem?
With the valid password, we are unable to execute sudo
commands from the ssh agent. We are getting "Sorry, try again". The same password works in the server.
What could be the problem?
According to a comment by Rinzwind,
"Sorry, try again" means the password is incorrect.
This is probably because the password contains special characters and a different keyboard layout is being used in the two different contexts you describe. Since the password doesn't show as you are typing, you can't be sure what characters are actually being produced. As Rinzwind says,
Type it out in a text editor and copy/paste it. If that works you need to switch keyboard layouts.