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: [SOLVED] Re: TRAMP suspended after I inputted password Date: Tue, 05 Apr 2022 11:28:01 +0800 Message-ID: <46487.9873137519$1649544308@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> <35749.2898636096$1648450131@news.gmane.org> <87a6d7bji8.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="10918"; 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 Sun Apr 10 00:45:00 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 1ndJpE-0002cu-Qf for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 10 Apr 2022 00:45:00 +0200 Original-Received: from localhost ([::1]:45296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndJpD-0000EO-I8 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 09 Apr 2022 18:44:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndJmL-0005Mr-JD for help-gnu-emacs@gnu.org; Sat, 09 Apr 2022 18:42:01 -0400 Original-Received: from [2409:8a28:6031:60:52d2:f5ff:fe16:c591] (port=50978 helo=Mac-mini.local) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndJmI-0004VA-4i for help-gnu-emacs@gnu.org; Sat, 09 Apr 2022 18:42:01 -0400 Original-Received: by Mac-mini.local (Postfix, from userid 501) id 393FF442E1E4; Tue, 5 Apr 2022 11:32:35 +0800 (CST) In-reply-to: <87a6d7bji8.fsf@gmx.de> X-Host-Lookup-Failed: Reverse DNS lookup failed for 2409:8a28:6031:60:52d2:f5ff:fe16:c591 (deferred) Received-SPF: softfail client-ip=2409:8a28:6031:60:52d2:f5ff:fe16:c591; envelope-from=numbchild@gmail.com; helo=Mac-mini.local X-Spam_score_int: 25 X-Spam_score: 2.5 X-Spam_bar: ++ X-Spam_report: (2.5 / 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, 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: no action 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:136894 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Michael Albinus writes: > "Christopher M. Miles" writes: > > Hi Christopher, > >> 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 TRAM= P. 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 o= f default login Zsh. But >> it's not working. Maybe I understand that wrong? Or my setting is wrong? > > Your setting looks OK. Do you have tried this with "emacs -Q"? And you > know, that you must perform these settings *before* accessing the > respective host the first time. > > If it doesn't work, pls produce Tramp traces with tramp-verbose set to 10. > > Best regards, Michael. Thanks for helping me to troubleshooting this problem. Sorry for late respo= nse. Today I spend some time on this task. Running command "emacs -Q" and load t= he following config: #+begin_src emacs-lisp (when (eq system-type 'darwin) ;; Each SYMBOL is control, meta, alt, super, hyper or none. ;; Use Alt key as Hyper (setq mac-option-modifier 'super) ; S- ~ ;; Use Command key as Meta (setq mac-command-modifier 'meta) ;; (setq mac-right-option-modifier 'hyper) (global-set-key [kp-delete] 'delete-char) ; sets fn-delete to be right-de= lete ) (require 'tramp) (setq tramp-verbose 10) (add-to-list 'tramp-connection-properties (list (regexp-quote "/ssh:raspberry_pi-wireless:") "remote-shell" "/bin/bash")) #+end_src The Raspberry Pi Linux default login shell is Zsh, with upper settings, I c= an normally access with TRAMP. After testing, it works. So I guess the problem is still on my Emacs= config. Really sorry about this wasted your time. =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----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmJLuFAACgkQG13xyVro msMRfAgA1TtzWOK6NnExB0jckJfnfXzMMFo7dxFapRGQQjqit2rEz0emFVPLXNwW k2AQRqdsfuY8S+Ghmifjhm7IM7hn6QFtdGrhg446ENAXoSNHaNTFVP+4qdl8HAg6 H1Tzz3Ed/dEH/fZDB2AhvEwgw3DocgmtPY8iKUFC09Zl7VjFzqVuB/Z4ZbxHd35+ zZQfPqMsX3UmTt8y/xR+ZDT9XH1wE82XOHGAkItkxgxWvqXQk9ndHwBvwHxbKQkH yJOyiMlzrc6t2SUUZlhyOGsHWvDJgEpIbtpl7FpmL1hfteFQDh+EeR5mZWSU33Zm rU87g9zu2PqJAfTh+H/BSlxp5dizPA== =yHqz -----END PGP SIGNATURE----- --=-=-=--