help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Tramp prompt (?) issue


From: Michael Albinus
Subject: Re: Tramp prompt (?) issue
Date: Mon, 03 Aug 2020 16:15:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Emanuel Berg via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:

Hi Emanuel,

> Now, after doing nothing, just removing all the
> files, the shell at SunOS has switched from zsh, back
> to bash!
>
> So now we don't need to care about zsh...
>
> Still DNC tho :(
>
> commands/settings:
>
>   (find-file "/-:embe8573@polhem.it.uu.se:darn.txt")
>
>   ;; ...
>
>   (require 'tramp)
>   (setq tramp-default-method "ssh")
>   (setq tramp-verbose 10)
>
> Tramp log:
>
>   
> https://dataswamp.org/~incal/tramp-debug/7/debug-tramp-ssh-embe8573-polhem-it-uu-se

There are still just the three characters "ESC Z ESC", returning from the
remote side. Maybe, it isn't a problem of the shell, but what is called
remotely by ssh.

Let's try to control this. Pls eval the following:

--8<---------------cut here---------------start------------->8---
(add-to-list 'tramp-methods
             `("myssh"
               (tramp-login-program        "ssh")
               (tramp-login-args           (("-l" "%u") ("-p" "%p") ("%c")
                                            ("-e" "none") ("-t" "-t") ("%h")
                                            ("\"%l -i\"")))
               (tramp-async-args           (("-q")))
               (tramp-remote-shell         ,tramp-default-remote-shell)
               (tramp-remote-shell-login   ("-l"))
               (tramp-remote-shell-args    ("-c"))))
--8<---------------cut here---------------end--------------->8---

This declares a new Tramp method "myssh", which is similar to "ssh", but
calls the remote shell directly. Please open then

--8<---------------cut here---------------start------------->8---
(find-file "/myssh:embe8573@polhem.it.uu.se:darn.txt")
--8<---------------cut here---------------end--------------->8---

Do not use the default method "-" while we're testing.

Best regards, Michael.



reply via email to

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