tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tramp and NT-Emacs with plink


From: Douglas Gray Stephens
Subject: Re: Tramp and NT-Emacs with plink
Date: Thu, 12 Sep 2002 11:18:38 +0100

Kai,

At 19:39 (GMT+0200) on 7-September-2002, Kai Großjohann wrote:
 > Douglas Gray Stephens <address@hidden> writes:
 > 
 > > I have added a new method for plink, and then found that I needed to
 > > modify the tramp.el file to handle some of the Windows line ending
 > > issues.  I prefer to work with Unix line endings so have
 > >  (setq-default buffer-file-coding-system 'undecided-unix)
 > > in my .emacs.el file, and this meant that I needed to change the
 > > tramp-rsh-end-of-line setting to
 > >  (setq  tramp-rsh-end-of-line "\r\n")
 > > which broke some of the searches, so I then needed to edit the
 > > tramp.el file.
 > 
 > After some debugging with Rainer, I've now done a different change to
 > Tramp: there is a new variable tramp-password-end-of-line which is
 > used when sending a password to the remote end.  In all other cases,
 > tramp-rsh-end-of-line is used.
 > 
 > Does it work to use the most recent version of Tramp from CVS (on
 > http://savannah.gnu.org/, not Sourceforge!) with plink under
 > Windows?  You may wish to leave tramp-rsh-end-of-line at the default
 > value of "\n", but change tramp-password-end-of-line to "\r\n".

I have downloaded 2.0.16 from the CVS archive on 
 address@hidden:/cvsroot/tramp 
and tried it out, and I only need set 
 (setq tramp-password-end-of-line "\r\n") 
and otherwise the code works without modification.

I was foxed by the change of syntax for a while, wondering why
 [plink/address@hidden/file
did not kick tramp off, but after looking at the documentation, I
realised the error of my ways.

I have noticed that
 1.  I cannot use
       /hostname:file
     as it does not get the password prompt, while
       /address@hidden:file
     works.
 2.  The code is always uploading the perl code for encoding/decoding,
     while before I could use the existing binary mimencode on the
     remote host.

I'm not sure it these are down to another RTFM issue, but even my old
pm method
  ;; Use plink with MIME (base64) encoding
  (add-to-list 
   'tramp-methods
   '("pm"    
     (tramp-connection-function  tramp-open-connection-rsh)
     (tramp-rsh-program          "plink")
     (tramp-rcp-program          nil)
     (tramp-remote-sh            "/bin/sh")
     (tramp-rsh-args             ("-v" "-ssh")) ;; "-v" optional
     (tramp-rcp-args             nil)
     (tramp-rcp-keep-date-arg    nil)
     (tramp-su-program           nil)
     (tramp-su-args              nil)
     (tramp-encoding-command     "mimencode -b")
     (tramp-decoding-command     "mimencode -u -b")
     (tramp-encoding-function    base64-encode-region)
     (tramp-decoding-function    base64-decode-region)
     (tramp-telnet-program       nil)
     (tramp-telnet-args          nil)
     )
   )
now pushes the perl code to the server. (Previously I was using
 $Id: tramp.el,v 2.95 2002/04/10 17:16:25 kaig Exp $
).

>From looking at the documentation,
 http://www.freesoftware.fsf.org/tramp/#Installation 
there are several methods (e.g. plinkm, plinku) that are not defined. 

I hope this feedback is useful, and thank you for your work developing
tramp,


Douglas.

-- 

================================
Dr. Douglas GRAY STEPHENS        
Technical Architect (Directories)
Schlumberger Cambridge Research
High Cross,
Madingley Road,
Cambridge.
CB3 0EL
ENGLAND

Phone  +44 1223 325295
Mobile +44 773 0051628
Fax    +44 1223 311830
Email address@hidden
================================





reply via email to

[Prev in Thread] Current Thread [Next in Thread]