tramp-devel
[Top][All Lists]
Advanced

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

Re: Cannot connect via ssh


From: Michael Albinus
Subject: Re: Cannot connect via ssh
Date: Mon, 29 Nov 2021 09:46:10 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

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.



reply via email to

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