all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Christopher M. Miles" <numbchild@gmail.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: Emacs Help <help-gnu-emacs@gnu.org>
Subject: Re: TRAMP suspended after I inputted password
Date: Mon, 28 Mar 2022 14:33:01 +0800	[thread overview]
Message-ID: <35749.2898636096$1648450131@news.gmane.org> (raw)
In-Reply-To: <877d8fhmav.fsf@gmx.de>

[-- Attachment #1: Type: text/plain, Size: 2511 bytes --]


Michael Albinus <michael.albinus@gmx.de> writes:

> "Christopher M. Miles" <numbchild@gmail.com> writes:
>
> Hi,
>
>> I tested command "ssh stardiviner@localhost" to ssh login my localhost account. It works fine and
>> the shell prompt show up. But I'm using Zsh on macOS by default, and the Zsh prompt is not standard,
>> it's customized by oh-my-zsh project. Maybe this is related? Then I tested with disable oh-my-zsh's
>> .zshrc profile file. And try Emacs tramp "/ssh:stardiviner@localhost:~". Still has suspend problem.
>>
>> PS. My zsh version: zsh 5.8.1 (arm-apple-darwin21.3.0)
>
> Tramp and zsh didn't fall in love ever. You need to disable the zle
> (built-in zsh), consult the Tramp manual about.
>
> Best regards, Michael.

Thank you, Michael.

Indeed, It tested on Raspberry Pi Bash, it works fine now. Seems problem indeed is on Zsh.

I found TRAMP Info manual mentioned setting remote server shell for TRAMP. I tried bellowing elisp setting:

#+begin_src emacs-lisp
(add-to-list 'tramp-connection-properties
             (list (regexp-quote "/ssh::")
                   "remote-shell" "/bin/bash"))
(add-to-list 'tramp-connection-properties
             (list (regexp-quote "/ssh:Mac-mini.local:")
                   "remote-shell" "/bin/bash"))
(add-to-list 'tramp-connection-properties
             (list (regexp-quote "/ssh:stardiviner@localhost:")
                   "remote-shell" "/bin/bash"))
(add-to-list 'tramp-connection-properties
             (list (regexp-quote "/ssh:raspberry_pi-wireless:")
                   "remote-shell" "/bin/bash"))
(add-to-list 'tramp-connection-properties
             (list (regexp-quote "/ssh:pi@192.168.31.36:")
                   "remote-shell" "/bin/bash"))
(add-to-list 'tramp-connection-properties
             (list (regexp-quote "/ssh:root@192.168.31.36:")
                   "remote-shell" "/bin/bash"))
(add-to-list 'tramp-connection-properties
             (list (regexp-quote "/ssh:qnap_nas_stardiviner:")
                   "remote-shell" "/bin/bash"))
#+end_src

The 1~3 part of sexps should let TRAMP invoke Bash on my macOS instead of default login Zsh. But
it's not working. Maybe I understand that wrong? Or my setting is wrong?

-- 
[ stardiviner ]
       I try to make every word tell the meaning that I want to express.

       Blog: https://stardiviner.github.io/
       IRC(freenode): stardiviner, Matrix: stardiviner
       GPG: F09F650D7D674819892591401B5DF1C95AE89AC3

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  parent reply	other threads:[~2022-03-28  6:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-22  1:12 TRAMP suspended after I inputted password Christopher M. Miles
2022-03-25 14:10 ` Michael Albinus
2022-03-26  1:53   ` Christopher M. Miles
2022-03-26  8:57     ` Michael Albinus
2022-03-26 15:20       ` Christopher M. Miles
2022-03-27  7:44         ` Michael Albinus
2022-03-27  8:10           ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-03-28  6:33           ` Christopher M. Miles [this message]
2022-03-30 14:30             ` Michael Albinus
2022-04-05  3:28               ` [SOLVED] " Christopher M. Miles

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='35749.2898636096$1648450131@news.gmane.org' \
    --to=numbchild@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael.albinus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.