On Tue, 24 Oct 2000, David Young wrote:
> Greetings. After recent discussions with Kai, I have learned that
> tramp's ssh support does not work with sites that prompt for both a
> passphrase _and_ password (as ours does). I would like to see tramp
> handle this situation as the utility tramp brings to those of us
> telecommuting here is valuable. So, Kai suggested we move the
> discussion to the tramp list.
here are the possibilities I see:
* Frob tramp-open-connection-rsh to keep looking for password or
passphrase prompts. This would deal with an arbitrary number of
them.
* Write a new function similar to tramp-open-connection-rsh which
looks for two password/passphrase prompts. Users could add an entry
to tramp-methods for this. (Not sure whether it should look for at
most two or exactly two password/passphrase prompts.)
The first alternative produces fairly complex code, since there are a
number of possibilities at each step, and we must be careful not to
get into an infloop. For example, what happens when login succeeds
immediately, but the shell prompt can't be found (because the remote
shell prompt doesn't match shell-prompt-pattern)?
The second alternative duplicates code and is quite restricted. But
the code is simpler. At least when we look for exactly two prompts.
Hm.
I think that Tramp currently does not deal well with the possibility
that somebody is entering the wrong password. Hm. I think the first
alternative would kind of gives this to us for free.
Thoughts?
kai
--
I like BOTH kinds of music.