Jordi Inglada <[email protected]> writes:

> Hi Michael,

Hi,

> Here's the file with the debug traces from the conection.

Thanks. Hmm, it isn't such simple. Tramp sends the password twice, as
expected:

> 12:30:55.389916 tramp-process-one-action (5) # Call €tramp-action-password€
> 12:30:55.390223 tramp-action-password (3) # Sending password


> 12:30:56.032796 tramp-process-one-action (5) # Call €tramp-action-password€
> 12:30:56.033032 tramp-action-password (3) # Sending password

This is due to the two password requests during your login:

> 12:31:32.087655 tramp-process-actions (6) #
> Gateway authentication and authorization
> Please specify the requested information
> Gateway password:
> [email protected]'s password:
> Last login: Sat Feb  1 11:46:34 2020 from 10.120.43.154

However, Tramp doesn't distingush the password prompts. It recognises
them due to the tramp-password-prompt-regexp regexp, that's it.

People tend to keep wrong passwords. Therefore, Tramp remembers,
whether it has send a password already once, and the next time it does
not check auth-sources for a cached password. That's why you're asked
again and again for it, interactively.

What you could do is to suppress this mechanism. Something like
(completely untested!)

(require 'tramp)
(defalias 'tramp-clear-passwd 'ignore)

This might have undesired side effects, for example caching wrong
passwords. But it is worth a try.

> Garjola.

Best regards, Michael.

Reply via email to