输入密码后,Emacs Tramp会在"输入"键上挂起

rve*_*rve 2 emacs tramp

我在输入密码后尝试了Cx Cf'/ ssh:user @ host:/ some/file',我的确认'enter'没有回复.

从OS X到archlinux机器,而ssh在emacs外部工作.

我设置PS1 =">",并在root shell中使用'emacs -q',而Cx Cf'/ sudo:root @ localhost:/'成功,Cx Cf'/ 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)
Run Code Online (Sandbox Code Playgroud)

我在远程计算机上创建了一个新用户并成功连接到该用户(使用bash),但我在主用户​​的.zhsrc中写了"case dumb"并且也失败了,所以我无法理解.

Pra*_*mar 5

你说你写过你的愚蠢案例.zshrc.请检查它是否与以下构造类似:

if [[ "$TERM" == "dumb" ]]
then
    unsetopt zle
    unsetopt prompt_cr
    unsetopt prompt_subst
    unfunction precmd
    unfunction preexec
    PS1='$ '
fi
Run Code Online (Sandbox Code Playgroud)

我遇到了类似的问题.将上面的块添加到我.zshrc修复的问题中.

礼貌:EmacsWiki