gpt4 book ai didi

输入密码后,Emacs Tramp 卡在 'enter' 键上

转载 作者:行者123 更新时间:2023-12-02 21:44:31 24 4
gpt4 key购买 nike

我尝试了 C-x C-f '/ssh:user@host:/some/file',输入密码后,我的确认“输入”没有得到回复。

从 OS X 到 archlinux 机器,而 ssh 在 emacs 之外工作。

我设置 PS1="> ",并在 root shell 中使用 'emacs -q',而 C-x C-f '/sudo:root@localhost:/' 成功,C-x C-f '/ssh:user@host:/' 也成功失败。

Tramp-verbose 设置为 10,它会提供此类信息。

12:25:46.141981 tramp-accept-process-output (3) # Opening connection for SOMEUSER@SOMEIP using ssh...done
12:25:46.142129 tramp-get-connection-property (7) # process-name nil
12:25:46.142269 tramp-flush-connection-property (7) # [ssh SOMEUSER SOMEIP nil] (first-password-request)
12:25:46.142420 tramp-flush-connection-property (7) # *tramp/ssh SOMEUSER@SOMEIP* (vector temp-file last-cmd-time)
12:25:46.142670 tramp-get-connection-property (7) # vector nil
12:25:46.143894 tramp-file-name-handler (1) # Interrupt received in operation (file-exists-p /ssh:SOMEUSER@SOMEIP:/home/SOMEUSER/tmp)

我在远程计算机上创建了一个新用户,并成功与该用户连接(使用 bash),但我在主用户​​的 .zhsrc 中写入了“case dumb”并且也失败了,所以我没明白重点。

最佳答案

你说你在 .zshrc 中写了 case dumb。请检查它是否类似于以下结构:

if [[ "$TERM" == "dumb" ]]
then
unsetopt zle
unsetopt prompt_cr
unsetopt prompt_subst
unfunction precmd
unfunction preexec
PS1='$ '
fi

我遇到了类似的问题。将上述 block 添加到我的 .zshrc 中解决了该问题。

礼貌:EmacsWiki

关于输入密码后,Emacs Tramp 卡在 'enter' 键上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19771363/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com