tramp-devel
[Top][All Lists]
Advanced

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

Re: Cannot connect via ssh


From: Reza Housseini
Subject: Re: Cannot connect via ssh
Date: Mon, 29 Nov 2021 09:54:23 +0100



On Mon, Nov 29, 2021 at 9:46 AM Michael Albinus <michael.albinus@gmx.de> wrote:
Reza Housseini <reza.housseini@gmail.com> writes:

> Hello

Hi Reza,

> I have a problem with my ssh connection via tramp, I always hang wit
> "Waiting for prompts from remote shell..." and have to cancel the
> request. I have tried to connect via the exec command displayed in the
> tramp-verbose log and everything just works fine. I also added
>
> if [["$TERM" == "dumb" ]]; then
>   PROMPT='$ '
> fi
>
> in my  .zshrc but to no avail. Find attached my tramp-verbose log with
> the connection details.
> Hope anyone can clarify what I'm doing wrong.

zsh has even more annoyances for Tramp. The recent Tramp manual recommends

--8<---------------cut here---------------start------------->8---
          When using zsh on remote hosts, disable zsh line editor
          because zsh uses left-hand side and right-hand side prompts in
          parallel.  Add the following line to ‘~/.zshrc’:

               [[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
--8<---------------cut here---------------end--------------->8---

> Thank you and best regards,
> Reza

Best regards, Michael.

Hi Michael

Thank you for your fast reply, that did the trick!

For my own understanding: is it generally better for tramp to connect via sh instead of bash or zsh?

Best regards,
Reza

reply via email to

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