tramp-devel
[Top][All Lists]
Advanced

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

Re: Using tramp with "RemoteCommand"


From: Michael Albinus
Subject: Re: Using tramp with "RemoteCommand"
Date: Wed, 29 Mar 2023 11:01:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Daniel Gomez <d.gomez@posteo.org> writes:

> Hi Michael,

Hi Daniel,

> thanks for the reply. Setting tramp-verbose to 10 helped me identify
> the issue, and it was clearly related to the prompt.
> I got it to work without issues after I changed the argument to --pty
> from /usr/bin/zsh to /bin/sh.
> I then noticed I had to play the rc trick on my zshrc to get it to
> work with zsh:
>
> ```
> if [[ $TERM == "dumb" ]]; then
>     unsetopt zle && PS1='> '
>     return
> fi
> ```
>
> And now things work as expected.

Thanks for the feedback. Good to know, that there's no error. I've modified
the Tramp manual, clarifying the use of RemoteCommand. It reads now

--8<---------------cut here---------------start------------->8---
   *Note*: If you use an ‘ssh’-based method for connection, do _not_ set
the ‘RemoteCommand’ option in your ‘ssh’ configuration to something like
‘screen’.  If used, ‘RemoteCommand’ must open an interactive shell on
the remote host.  On the other hand, some ‘ssh’-based methods, like
‘sshx’ or ‘scpx’, silently overwrite a ‘RemoteCommand’ option of the
configuration file.
--8<---------------cut here---------------end--------------->8---

> I still have issues getting python to run, but I assume that is not
> directly related to TRAMP, but rather to my configuration.
> I'll continue investigating and hopefully that too will work soon.

Let us know whether we could help you.

> Kind regards,
> Daniel

Best regards, Michael.



reply via email to

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