[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TRAMP suspended after I inputted password
From: |
Christopher M. Miles |
Subject: |
Re: TRAMP suspended after I inputted password |
Date: |
Mon, 28 Mar 2022 14:33:01 +0800 |
User-agent: |
mu4e 1.6.10; emacs 29.0.50 |
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
signature.asc
Description: PGP signature
- TRAMP suspended after I inputted password, Christopher M. Miles, 2022/03/25
- Re: TRAMP suspended after I inputted password, Michael Albinus, 2022/03/25
- Re: TRAMP suspended after I inputted password, Christopher M. Miles, 2022/03/25
- Message not available
- Re: TRAMP suspended after I inputted password, Michael Albinus, 2022/03/26
- Re: TRAMP suspended after I inputted password, Christopher M. Miles, 2022/03/26
- Message not available
- Re: TRAMP suspended after I inputted password, Michael Albinus, 2022/03/27
- Re: TRAMP suspended after I inputted password, Emanuel Berg, 2022/03/27
- Re: TRAMP suspended after I inputted password,
Christopher M. Miles <=
- Message not available
- Re: TRAMP suspended after I inputted password, Michael Albinus, 2022/03/30