From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Christopher M. Miles" Newsgroups: gmane.emacs.help Subject: Re: TRAMP suspended after I inputted password Date: Mon, 28 Mar 2022 14:33:01 +0800 Message-ID: <35749.2898636096$1648450131@news.gmane.org> References: <37296.8222176254$1648211811@news.gmane.org> <87ils2i0md.fsf@gmx.de> <41568.5577596136$1648261759@news.gmane.org> <87wnghgkg2.fsf@gmx.de> <12258.499539324$1648308379@news.gmane.org> <877d8fhmav.fsf@gmx.de> Reply-To: numbchild@gmail.com Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19530"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.10; emacs 29.0.50 Cc: Emacs Help To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 28 08:48:45 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nYjBF-0004wY-Co for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 28 Mar 2022 08:48:45 +0200 Original-Received: from localhost ([::1]:56756 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nYjBD-0002eO-PH for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 28 Mar 2022 02:48:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYj4R-0000g3-4x for help-gnu-emacs@gnu.org; Mon, 28 Mar 2022 02:41:43 -0400 Original-Received: from [39.171.215.117] (port=17858 helo=Mac-mini.local) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nYj4O-0007lM-FL for help-gnu-emacs@gnu.org; Mon, 28 Mar 2022 02:41:42 -0400 Original-Received: by Mac-mini.local (Postfix, from userid 501) id BA37B4186449; Mon, 28 Mar 2022 14:40:59 +0800 (CST) In-reply-to: <877d8fhmav.fsf@gmx.de> X-Host-Lookup-Failed: Reverse DNS lookup failed for 39.171.215.117 (deferred) Received-SPF: softfail client-ip=39.171.215.117; envelope-from=numbchild@gmail.com; helo=Mac-mini.local X-Spam_score_int: 58 X-Spam_score: 5.8 X-Spam_bar: +++++ X-Spam_report: (5.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, MSGID_MULTIPLE_AT=1, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_PBL=3.335, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, SPOOFED_FREEMAIL_NO_RDNS=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: reject X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:136796 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Michael Albinus writes: > "Christopher M. Miles" writes: > > Hi, > >> I tested command "ssh stardiviner@localhost" to ssh login my localhost a= ccount. 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 test= ed 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 in= deed 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 d= efault login Zsh. But it's not working. Maybe I understand that wrong? Or my setting is wrong? =2D-=20 [ 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 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmJBWHsACgkQG13xyVro msP+YAf/RsXPn+KFW0MNIKVagIVP1gj/vPiIiI93uVYEvuIMp1rD/XMIJN9nRY/W 2A0h96srQOR5KrEjb54E4ThW5Dq9xRAVdsaSIA74GDpQjyZDntPZQXovjyCq8M06 rvBunTroXJWdrz/TAvpFf2iM0iAdIKJ2sneVxOmDpl/oK/WUVVcZ142y2kpJymXe 43MCz+XIUNf6jHdOALZALJf90VqLGrTHrV1a3eALyVyM4muIcMC61CLutVitZgTg PwfLJDbDemVn6OJNhwj7z/PdpNQRXSiUPyeiqQTePvn2AUeuUV1Mf8MjvqQGgscW jNGRW6NbF+GwFnTZO+cd4Sk3nBa1Wg== =faN/ -----END PGP SIGNATURE----- --=-=-=--