tramp-devel
[Top][All Lists]
Advanced

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

Re: Tramp mosh method


From: Ted Zlatanov
Subject: Re: Tramp mosh method
Date: Tue, 24 Apr 2012 09:04:39 -0400
User-agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.1.50 (gnu/linux)

On Tue, 24 Apr 2012 14:27:46 +0200 Michael Albinus <address@hidden> wrote: 

MA> Ted Zlatanov <address@hidden> writes:
>> With this exact `add-to-list' call, I still get the "host is not remote" 
>> error:

MA> Did you start with "emacs -Q -l tramp"? If not, please do.

MA> You have also not given a user name, and you haven't specified a default
MA> one. Please open file "/mosh:address@hidden:/home/tzz".

I evaluated this in *scratch*:

(add-to-list
 'tramp-methods
 '("mosh"
   (tramp-login-program "env LC_ALL=en_US.UTF-8 /usr/bin/mosh")
   (tramp-login-args (("address@hidden")))
   (tramp-async-args (()))
   (tramp-remote-shell "/bin/sh")
   (tramp-remote-shell-args ("-c"))
   (tramp-gw-args ())
   (tramp-default-port 22)))

Same error with the path you suggested, using an Emacs binary compiled
from trunk yesterday.  tramp-version is 2.2.3-24.1 (from Emacs trunk).

(find-file-noselect "/mosh:address@hidden:/home/tzz" nil nil t)

MA> If this doesn't help, please set tramp-verbose to 6, and show the debug
MA> buffer.

09:01:46.582622 tramp-maybe-open-connection (3) # Opening connection for 
address@hidden using mosh...
09:01:46.582956 tramp-compute-multi-hops (1) # File error: Host `anyhost' looks 
like a remote host, `mosh' can only use the local host
09:01:46.583088 tramp-compute-multi-hops (3) # Opening connection for 
address@hidden using mosh...done
09:01:46.583501 tramp-get-test-command (5) # Finding a suitable `test' command
09:01:46.583656 tramp-maybe-open-connection (3) # Opening connection for 
address@hidden using mosh...
09:01:46.583879 tramp-compute-multi-hops (1) # File error: Host `anyhost' looks 
like a remote host, `mosh' can only use the local host
09:01:46.584005 tramp-compute-multi-hops (3) # Opening connection for 
address@hidden using mosh...done

>> I tried setting LINES and COLUMNS in the usual Unix way but the error
>> above blocks me from testing it.

MA> Maybe we need also a proper TERM setting. OTOH, Emacs and/or Tramp set
MA> it to "dumb", maybe you cannot overwrite it. Dunno.

I'll work on that when I get the basic method working :)

Thanks for the help!
Ted



reply via email to

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