The right command for putty is

    plink -ssh username@hostname

But the current tramp-open-connection-rsh code wants to do

    plink -ssh hostname -l username

Clearly, this is bad.  So my idea is to change tramp-methods so that
the rsh-args list contains "%u" and %h" escapes for the user name and
the host name, like done in other places inside Tramp.

Daniel,

do you think it makes sense to add this before your Great Connection
Method Rewrite, or should we wait?

Tom,

you can make a copy of the tramp-open-connection-rsh function and
change the place where the rsh-program is invoked.  I think you can
see where it adds "hostname -l username", and you can just replace
that part.  Give the new function a different name, and then add an
entry to tramp-methods which refers to the new function.  This would
be a workaround until Daniel is finshed, if Daniel thinks it's not
worthwhile changing the old version.

kai
-- 
Be indiscrete.  Do it continuously.

Reply via email to