* TRAMP suspended after I inputted password
@ 2022-03-22 1:12 Christopher M. Miles
2022-03-25 14:10 ` Michael Albinus
0 siblings, 1 reply; 10+ messages in thread
From: Christopher M. Miles @ 2022-03-22 1:12 UTC (permalink / raw)
To: Emacs Help
[-- Attachment #1: Type: text/plain, Size: 12080 bytes --]
I toggled TRAMP debugging with ~(setq tramp-verbose 10)~. And tested with =emacs -Q= confirmed this problem.
- Emacs version: GNU Emacs 29.0.50 (build 2, aarch64-apple-darwin21.3.0, NS appkit-2113.30 Version 12.2.1 (Build 21D62)) of 2022-03-09
- System: M1 Mac Mini, macOS Monterey Version 12.3
Here is the TRAMP debug log output:
#+begin_example
backtrace()
tramp-error(nil quit "")
tramp-signal-hook-function(quit nil)
signal(quit nil)
tramp-maybe-open-connection((tramp-file-name #("ssh" 0 3 (face nil)) #("stardiviner" 0 11 (face nil)) nil #("localhost" 0 9 (face nil)) nil "" nil))
tramp-send-command((tramp-file-name #("ssh" 0 3 (face nil)) #("stardiviner" 0 11 (face nil)) nil #("localhost" 0 9 (face nil)) nil "" nil) "echo ~ 2>/dev/null; echo tramp_exit_status $?")
tramp-send-command-and-check((tramp-file-name #("ssh" 0 3 (face nil)) #("stardiviner" 0 11 (face nil)) nil #("localhost" 0 9 (face nil)) nil "" nil) "echo ~")
tramp-sh-handle-get-home-directory((tramp-file-name #("ssh" 0 3 (face nil)) #("stardiviner" 0 11 (face nil)) nil #("localhost" 0 9 (face nil)) nil "" nil) "")
apply(tramp-sh-handle-get-home-directory ((tramp-file-name #("ssh" 0 3 (face nil)) #("stardiviner" 0 11 (face nil)) nil #("localhost" 0 9 (face nil)) nil "" nil) ""))
tramp-sh-file-name-handler(tramp-get-home-directory (tramp-file-name #("ssh" 0 3 (face nil)) #("stardiviner" 0 11 (face nil)) nil #("localhost" 0 9 (face nil)) nil "" nil) "")
apply(tramp-sh-file-name-handler tramp-get-home-directory ((tramp-file-name #("ssh" 0 3 (face nil)) #("stardiviner" 0 11 (face nil)) nil #("localhost" 0 9 (face nil)) nil "" nil) ""))
tramp-file-name-handler(tramp-get-home-directory (tramp-file-name #("ssh" 0 3 (face nil)) #("stardiviner" 0 11 (face nil)) nil #("localhost" 0 9 (face nil)) nil "" nil) "")
tramp-get-home-directory((tramp-file-name #("ssh" 0 3 (face nil)) #("stardiviner" 0 11 (face nil)) nil #("localhost" 0 9 (face nil)) nil "" nil) "")
tramp-sh-handle-expand-file-name(#("/ssh:stardiviner@localhost:" 1 4 (face nil) 5 16 (face nil) 17 26 (face nil)) nil)
apply(tramp-sh-handle-expand-file-name (#("/ssh:stardiviner@localhost:" 1 4 (face nil) 5 16 (face nil) 17 26 (face nil)) nil))
tramp-sh-file-name-handler(expand-file-name #("/ssh:stardiviner@localhost:" 1 4 (face nil) 5 16 (face nil) 17 26 (face nil)) nil)
apply(tramp-sh-file-name-handler expand-file-name (#("/ssh:stardiviner@localhost:" 1 4 (face nil) 5 16 (face nil) 17 26 (face nil)) nil))
tramp-file-name-handler(expand-file-name #("/ssh:stardiviner@localhost:" 1 4 (face nil) 5 16 (face nil) 17 26 (face nil)) nil)
file-name-all-completions("" #("/ssh:stardiviner@localhost:" 1 4 (face nil) 5 16 (face nil) 17 26 (face nil)))
completion-file-name-table(#("/ssh:stardiviner@localhost:" 1 4 (face nil) 5 16 (face nil) 17 26 (face nil)) file-exists-p t)
all-completions(#("/ssh:stardiviner@localhost:" 1 4 (face nil) 5 16 (face nil) 17 26 (face nil)) completion-file-name-table file-exists-p)
completion-pcm--all-completions(#("/ssh:stardiviner@localhost:" 1 4 (face nil) 5 16 (face nil) 17 26 (face nil)) nil completion-file-name-table file-exists-p)
completion-pcm--find-all-completions(#("/ssh:stardiviner@localhost:" 1 4 (face nil) 5 16 (face nil) 17 26 (face nil)) completion-file-name-table file-exists-p 27)
completion-pcm-all-completions(#("/ssh:stardiviner@localhost:" 1 4 (face nil) 5 16 (face nil) 17 26 (face nil)) completion-file-name-table file-exists-p 27)
#f(compiled-function (style) #<bytecode 0x146faee2721c1a6a>)(partial-completion)
completion--some(#f(compiled-function (style) #<bytecode 0x146faee2721c1a6a>) (partial-completion substring initials orderless))
completion--nth-completion(2 #("/ssh:stardiviner@localhost:" 0 27 (face nil)) read-file-name-internal file-exists-p 27 (metadata (category . file) (completion--unquote-requote . t)))
#f(compiled-function (string table pred point &optional metadata) "List the possible completions of STRING in completion table TABLE.\nOnly the elements of table that satisfy predicate PRED are considered.\nPOINT is the position of point within STRING.\nThe return value is a list of completions and may contain the base-size\nin the last `cdr'." #<bytecode 0x7faf8cbaf6652cb>)(#("/ssh:stardiviner@localhost:" 0 27 (face nil)) read-file-name-internal file-exists-p 27 (metadata (category . file) (completion--unquote-requote . t)))
apply(#f(compiled-function (string table pred point &optional metadata) "List the possible completions of STRING in completion table TABLE.\nOnly the elements of table that satisfy predicate PRED are considered.\nPOINT is the position of point within STRING.\nThe return value is a list of completions and may contain the base-size\nin the last `cdr'." #<bytecode 0x7faf8cbaf6652cb>) (#("/ssh:stardiviner@localhost:" 0 27 (face nil)) read-file-name-internal file-exists-p 27 (metadata (category . file) (completion--unquote-requote . t))))
completion-all-completions(#("/ssh:stardiviner@localhost:" 0 27 (face nil)) read-file-name-internal file-exists-p 27 (metadata (category . file) (completion--unquote-requote . t)))
apply(completion-all-completions (#("/ssh:stardiviner@localhost:" 0 27 (face nil)) read-file-name-internal file-exists-p 27 (metadata (category . file) (completion--unquote-requote . t))))
vertico--all-completions(#("/ssh:stardiviner@localhost:" 0 27 (face nil)) read-file-name-internal file-exists-p 27 (metadata (category . file) (completion--unquote-requote . t)))
vertico--recompute-candidates(27 #("/ssh:stardiviner@localhost:" 0 27 (face nil)))
vertico--update-candidates(27 #("/ssh:stardiviner@localhost:" 0 27 (face nil)))
vertico--exhibit()
read-from-minibuffer("Find file: " "~/Org/Projects/Programming Projects/" (keymap (keymap (32)) keymap (10 . minibuffer-complete-and-exit) (13 . minibuffer-complete-and-exit) keymap (24 keymap (10 . consult-dir-jump-file) (4 . consult-dir)) (menu-bar keymap (minibuf "Minibuf" keymap (tab menu-item "Complete" minibuffer-complete :help "Complete as far as possible") (space menu-item "Complete Word" minibuffer-complete-word :help "Complete at most one word") (63 menu-item "List Completions" minibuffer-completion-help :help "Display all possible completions") "Minibuf")) (27 keymap (103 keymap (27 keymap (99 . switch-to-completions))) (118 . switch-to-completions)) (prior . switch-to-completions) (63 . minibuffer-completion-help) (32 . minibuffer-complete-word) (backtab . minibuffer-complete) (9 . minibuffer-complete) keymap (remap keymap (describe-bindings . embark-bindings)) (67108910 . embark-act) (3 keymap (39 . separedit)) (menu-bar keymap (minibuf "Minibuf" keymap (previous menu-item "Previous History Item" previous-history-element :help "Put previous minibuffer history element in the min...") (next menu-item "Next History Item" next-history-element :help "Put next minibuffer history element in the minibuf...") (isearch-backward menu-item "Isearch History Backward" isearch-backward :help "Incrementally search minibuffer history backward") (isearch-forward menu-item "Isearch History Forward" isearch-forward :help "Incrementally search minibuffer history forward") (return menu-item "Enter" exit-minibuffer :key-sequence "\15" :help "Terminate input and exit minibuffer") (quit menu-item "Quit" abort-recursive-edit :help "Abort input and exit minibuffer") "Minibuf")) (13 . exit-minibuffer) (10 . exit-minibuffer) (7 . abort-minibuffers) (C-tab . file-cache-minibuffer-complete) (9 . self-insert-command) (XF86Back . previous-history-element) (up . previous-line-or-history-element) (prior . previous-history-element) (XF86Forward . next-history-element) (down . next-line-or-history-element) (next . next-history-element) (27 keymap (111 . embark-dwim) (60 . minibuffer-beginning-of-buffer) (114 . previous-matching-history-element) (115 . next-matching-history-element) (112 . previous-history-element) (110 . next-history-element))) nil file-name-history "~/Org/Projects/Programming Projects/" nil)
#f(compiled-function (prompt collection &optional predicate require-match initial-input hist def inherit-input-method) "Default method for reading from the minibuffer with completion.\nSee `completing-read' for the meaning of the arguments." #<bytecode 0xfc5368d28e75837>)("Find file: " read-file-name-internal file-exists-p confirm-after-completion "~/Org/Projects/Programming Projects/" file-name-history "~/Org/Projects/Programming Projects/" nil)
apply((#f(compiled-function (prompt collection &optional predicate require-match initial-input hist def inherit-input-method) "Default method for reading from the minibuffer with completion.\nSee `completing-read' for the meaning of the arguments." #<bytecode 0xfc5368d28e75837>) "Find file: " read-file-name-internal file-exists-p confirm-after-completion "~/Org/Projects/Programming Projects/" file-name-history "~/Org/Projects/Programming Projects/" nil))
vertico-multiform--advice(#f(compiled-function (prompt collection &optional predicate require-match initial-input hist def inherit-input-method) "Default method for reading from the minibuffer with completion.\nSee `completing-read' for the meaning of the arguments." #<bytecode 0xfc5368d28e75837>) "Find file: " read-file-name-internal file-exists-p confirm-after-completion "~/Org/Projects/Programming Projects/" file-name-history "~/Org/Projects/Programming Projects/" nil)
apply(vertico-multiform--advice (#f(compiled-function (prompt collection &optional predicate require-match initial-input hist def inherit-input-method) "Default method for reading from the minibuffer with completion.\nSee `completing-read' for the meaning of the arguments." #<bytecode 0xfc5368d28e75837>) "Find file: " read-file-name-internal file-exists-p confirm-after-completion "~/Org/Projects/Programming Projects/" file-name-history "~/Org/Projects/Programming Projects/" nil))
vertico--advice(#f(compiled-function (prompt collection &optional predicate require-match initial-input hist def inherit-input-method) "Default method for reading from the minibuffer with completion.\nSee `completing-read' for the meaning of the arguments." #<bytecode 0xfc5368d28e75837>) "Find file: " read-file-name-internal file-exists-p confirm-after-completion "~/Org/Projects/Programming Projects/" file-name-history "~/Org/Projects/Programming Projects/" nil)
apply(vertico--advice #f(compiled-function (prompt collection &optional predicate require-match initial-input hist def inherit-input-method) "Default method for reading from the minibuffer with completion.\nSee `completing-read' for the meaning of the arguments." #<bytecode 0xfc5368d28e75837>) ("Find file: " read-file-name-internal file-exists-p confirm-after-completion "~/Org/Projects/Programming Projects/" file-name-history "~/Org/Projects/Programming Projects/" nil))
completing-read-default("Find file: " read-file-name-internal file-exists-p confirm-after-completion "~/Org/Projects/Programming Projects/" file-name-history "~/Org/Projects/Programming Projects/" nil)
completing-read("Find file: " read-file-name-internal file-exists-p confirm-after-completion "~/Org/Projects/Programming Projects/" file-name-history "~/Org/Projects/Programming Projects/")
read-file-name-default("Find file: " nil "/Users/stardiviner/Org/Projects/Programming Projec..." confirm-after-completion nil nil)
read-file-name("Find file: " nil "/Users/stardiviner/Org/Projects/Programming Projec..." confirm-after-completion)
find-file-read-args("Find file: " confirm-after-completion)
byte-code("\300\301\302 \"\207" [find-file-read-args "Find file: " confirm-nonexistent-file-or-buffer] 3)
call-interactively(find-file nil nil)
command-execute(find-file)
#+end_example
--
[ 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 --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: TRAMP suspended after I inputted password
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
0 siblings, 1 reply; 10+ messages in thread
From: Michael Albinus @ 2022-03-25 14:10 UTC (permalink / raw)
To: Christopher M. Miles; +Cc: Emacs Help
"Christopher M. Miles" <numbchild@gmail.com> writes:
Hi,
> I toggled TRAMP debugging with ~(setq tramp-verbose 10)~. And tested with =emacs -Q= confirmed this problem.
>
> - Emacs version: GNU Emacs 29.0.50 (build 2, aarch64-apple-darwin21.3.0, NS appkit-2113.30 Version 12.2.1 (Build 21D62)) of 2022-03-09
> - System: M1 Mac Mini, macOS Monterey Version 12.3
>
> Here is the TRAMP debug log output:
It isn't the Tramp debug log, it is the backtrace. For analysis, I'd need
the full Tramp debug buffer *debug tramp/ssh stardiviner@localhost*.
If you believe it is too long for this ML, you could send it directly to me.
Best regards, Michael.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: TRAMP suspended after I inputted password
2022-03-25 14:10 ` Michael Albinus
@ 2022-03-26 1:53 ` Christopher M. Miles
2022-03-26 8:57 ` Michael Albinus
0 siblings, 1 reply; 10+ messages in thread
From: Christopher M. Miles @ 2022-03-26 1:53 UTC (permalink / raw)
To: Michael Albinus; +Cc: Emacs Help
[-- Attachment #1: Type: text/plain, Size: 1186 bytes --]
Michael Albinus <michael.albinus@gmx.de> writes:
> "Christopher M. Miles" <numbchild@gmail.com> writes:
>
> Hi,
>
>> I toggled TRAMP debugging with ~(setq tramp-verbose 10)~. And tested with =emacs -Q= confirmed this problem.
>>
>> - Emacs version: GNU Emacs 29.0.50 (build 2, aarch64-apple-darwin21.3.0, NS appkit-2113.30 Version 12.2.1 (Build 21D62)) of 2022-03-09
>> - System: M1 Mac Mini, macOS Monterey Version 12.3
>>
>> Here is the TRAMP debug log output:
>
> It isn't the Tramp debug log, it is the backtrace. For analysis, I'd need
> the full Tramp debug buffer *debug tramp/ssh stardiviner@localhost*.
>
> If you believe it is too long for this ML, you could send it directly to me.
>
> Best regards, Michael.
Indeed, the tramp debug log is too large (45M), email (sendmail) can't send it. So I paste it on
GitHub Gist here: https://gist.github.com/stardiviner/d53fde541154cddf44db8d95c2ee15a1
--
[ 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 --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: TRAMP suspended after I inputted password
2022-03-26 1:53 ` Christopher M. Miles
@ 2022-03-26 8:57 ` Michael Albinus
2022-03-26 15:20 ` Christopher M. Miles
0 siblings, 1 reply; 10+ messages in thread
From: Michael Albinus @ 2022-03-26 8:57 UTC (permalink / raw)
To: Christopher M. Miles; +Cc: Emacs Help
"Christopher M. Miles" <numbchild@gmail.com> writes:
Hi,
> Indeed, the tramp debug log is too large (45M), email (sendmail) can't send it. So I paste it on
> GitHub Gist here: https://gist.github.com/stardiviner/d53fde541154cddf44db8d95c2ee15a1
Thanks. According to the traces, Tramp has sent
--8<---------------cut here---------------start------------->8---
09:46:13.813642 tramp-send-command (6) # exec ssh -l stardiviner -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none localhost
--8<---------------cut here---------------end--------------->8---
Then the password request was answered successfully
--8<---------------cut here---------------start------------->8---
09:46:14.069608 tramp-accept-process-output (10) # *tramp/ssh stardiviner@localhost* 0 run nil
(stardiviner@localhost) Password:
09:46:14.070100 tramp-action-password (3) # Sending Password
--8<---------------cut here---------------end--------------->8---
However, Tramp didn't see any shell prompt afterwards. Instead (when you
have quit the connection), it sees
--8<---------------cut here---------------start------------->8---
09:46:53.454713 tramp-accept-process-output (1) # Quit: "Quit", ""
Last login: Fri Mar 25 13:29:03 2022
thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 18446744073709551615', /Users/ciaccount/actions-runner/_work/macos/macos/rust-lib/alacritty_terminal/src/grid/mod.rs:452:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
--8<---------------cut here---------------end--------------->8---
Do you see the same when calling the ssh command above from a shell? Do
you see a shell prompt there?
Best regards, Michael.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: TRAMP suspended after I inputted password
2022-03-26 8:57 ` Michael Albinus
@ 2022-03-26 15:20 ` Christopher M. Miles
2022-03-27 7:44 ` Michael Albinus
0 siblings, 1 reply; 10+ messages in thread
From: Christopher M. Miles @ 2022-03-26 15:20 UTC (permalink / raw)
To: Michael Albinus; +Cc: Emacs Help
[-- Attachment #1: Type: text/plain, Size: 2174 bytes --]
Michael Albinus <michael.albinus@gmx.de> writes:
> "Christopher M. Miles" <numbchild@gmail.com> writes:
>
> Hi,
>
>> Indeed, the tramp debug log is too large (45M), email (sendmail) can't send it. So I paste it on
>> GitHub Gist here: https://gist.github.com/stardiviner/d53fde541154cddf44db8d95c2ee15a1
>
> Thanks. According to the traces, Tramp has sent
>
> 09:46:13.813642 tramp-send-command (6) # exec ssh -l stardiviner -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none localhost
>
>
> Then the password request was answered successfully
>
> 09:46:14.069608 tramp-accept-process-output (10) # *tramp/ssh stardiviner@localhost* 0 run nil
>
> (stardiviner@localhost) Password:
> 09:46:14.070100 tramp-action-password (3) # Sending Password
>
>
> However, Tramp didn't see any shell prompt afterwards. Instead (when you
> have quit the connection), it sees
>
> 09:46:53.454713 tramp-accept-process-output (1) # Quit: "Quit", ""
>
> Last login: Fri Mar 25 13:29:03 2022
> thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 18446744073709551615', /Users/ciaccount/actions-runner/_work/macos/macos/rust-lib/alacritty_terminal/src/grid/mod.rs:452:14
> note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
>
> Do you see the same when calling the ssh command above from a shell? Do
> you see a shell prompt there?
>
> Best regards, Michael.
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)
--
[ 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 --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: TRAMP suspended after I inputted password
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
0 siblings, 2 replies; 10+ messages in thread
From: Michael Albinus @ 2022-03-27 7:44 UTC (permalink / raw)
To: Christopher M. Miles; +Cc: Emacs Help
"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.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: TRAMP suspended after I inputted password
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
1 sibling, 0 replies; 10+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2022-03-27 8:10 UTC (permalink / raw)
To: help-gnu-emacs
Michael Albinus wrote:
> You need to disable the zle (built-in zsh), consult the
> Tramp manual about.
Hm ... like this?
[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
> Tramp and zsh didn't fall in love ever.
We got it to work from Linux (Debian) to both OpenBSD and
SunOS, remember? (Actually if I didn't have these files
I don't know how much I would remember. But I use it every
day, to the OpenBSD account filesystem, so thumbs up
regardless ...)
But, now technically speaking ... it doesn't look like zsh
from the below settings?
;;; -*- lexical-binding: t -*-
;;
;; this file:
;; https://dataswamp.org/~incal/emacs-init/tramp-incal.el
(require 'tramp)
(require 'tramp-sh)
(setq tramp-histfile-override nil)
(add-to-list 'tramp-methods
'("sunos-ssh"
(tramp-login-program "ssh")
(tramp-login-args (("-l" "%u")
("-p" "%p")
("%c")
("-e" "none")
("-t" "-t")
("%h")
("\"/bin/sh -i\"") ))
(tramp-async-args (("-q")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-login ("-l"))
(tramp-remote-shell-args ("-c")) ))
;; SunOS system:
;; (find-file "/sunos-ssh:embe8573@polhem.it.uu.se:public_html/darn.txt")
;;
;; OpenBSD system:
;; (find-file "/-:incal@srv.dataswamp.org:public_html/sth/sth.py")
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: TRAMP suspended after I inputted password
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
2022-03-30 14:30 ` Michael Albinus
1 sibling, 1 reply; 10+ messages in thread
From: Christopher M. Miles @ 2022-03-28 6:33 UTC (permalink / raw)
To: Michael Albinus; +Cc: Emacs Help
[-- 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 --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: TRAMP suspended after I inputted password
2022-03-28 6:33 ` Christopher M. Miles
@ 2022-03-30 14:30 ` Michael Albinus
2022-04-05 3:28 ` [SOLVED] " Christopher M. Miles
0 siblings, 1 reply; 10+ messages in thread
From: Michael Albinus @ 2022-03-30 14:30 UTC (permalink / raw)
To: Christopher M. Miles; +Cc: Emacs Help
"Christopher M. Miles" <numbchild@gmail.com> 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 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?
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.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [SOLVED] Re: TRAMP suspended after I inputted password
2022-03-30 14:30 ` Michael Albinus
@ 2022-04-05 3:28 ` Christopher M. Miles
0 siblings, 0 replies; 10+ messages in thread
From: Christopher M. Miles @ 2022-04-05 3:28 UTC (permalink / raw)
To: Michael Albinus; +Cc: Emacs Help
[-- Attachment #1: Type: text/plain, Size: 3266 bytes --]
Michael Albinus <michael.albinus@gmx.de> writes:
> "Christopher M. Miles" <numbchild@gmail.com> 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 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?
>
> 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 response.
Today I spend some time on this task. Running command "emacs -Q" and load the 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-delete
)
(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 can 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.
--
[ 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 --]
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2022-04-05 3:28 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2022-03-30 14:30 ` Michael Albinus
2022-04-05 3:28 ` [SOLVED] " Christopher M. Miles
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).