首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >输入密码后Emacs Tramp挂起“enter”键

输入密码后Emacs Tramp挂起“enter”键
EN

Stack Overflow用户
提问于 2013-11-04 15:42:28
回答 1查看 2.2K关注 0票数 2

我尝试了C‘/ssh:user@host:/some/file,输入我的密码后,我的确认'enter’没有得到回复。

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

我将PS1=设置为“> ",并在根外壳中使用'emacs -q‘,而C '/sudo: root @localhost:/’继任,C‘/ssh:user@-q:/’也失败了。

Tramp-详细设置为10,它提供了这样的信息。

代码语言:javascript
复制
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哑”,但也失败了,所以我无法理解。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-11-09 05:31:27

你说你在你的.zshrc里写了一个愚蠢的案子。请检查它是否类似于以下构造:

代码语言:javascript
复制
if [[ "$TERM" == "dumb" ]]
then
    unsetopt zle
    unsetopt prompt_cr
    unsetopt prompt_subst
    unfunction precmd
    unfunction preexec
    PS1='$ '
fi

我遇到了一个类似的问题。将上面的块添加到我的.zshrc中解决了这个问题。

礼貌EmacsWiki

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19771363

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档