[Top][All Lists]

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

Re: tramp (2.1.15-pre); error on vc-bzr when scp not-exists on server

From: Michael Albinus
Subject: Re: tramp (2.1.15-pre); error on vc-bzr when scp not-exists on server
Date: Thu, 18 Dec 2008 05:49:05 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

address@hidden (Mark A. Hershberger) writes:

>> Your remote host returns as `uname -r' "Linux 2.6.18-6-686". I doubt,
>> that there is no scp installed.
> I can guarentee you there is no scp installed.  I removed it.
> The following:
>>> 10:26:59 tramp-do-copy-or-rename-file-out-of-band (6) # scp -p -q 
>>> /tmp/tramp.28181DNK
>>> 10:26:59 tramp-process-actions (6) # 
>>> Connection to closed by remote host.
> Is exactly what happens when there is no remote scp.  I'm using dropbear
> on the remote client as the sshd.

OK, I'm convinced :-)

> I'm not naming a transfer method.  I do:
>     C-x C-f / RET
> and the filename is loaded properly.  vc-bzr jumps into action and tries
> to read the dirstate file, but fails.
> I don't know what is going on in the background, but it looks like tramp
> sees that there is no scp and falls over to something like ssh.  vc-bzr,
> though, seems to still rely on ssh.

It has nothing to do with vc-bzr. It is still Tramp, which puzzles you.

When Tramp uses scp as transfer method, it applies an internal
optimization. For all files smaller than `tramp-copy-size-limit', it
still uses ssh, because calling scp is an overhead, which is to heavy
when copying small files. Your file "setup-openmrs-for-pilot" seems to
be small enough, whereas "dirstate" seems to be longer than 10KB (the
default limit).

So I recommend you to apply ssh as default method for that remote
host. Something like

  (add-to-list 'tramp-default-method-alist
               '("\\`192\\.168\\.12\\.107\\'" "" "ssh"))

shall do it.

> Thank you,
> Mark.

Best regards, Michael.

reply via email to

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