Emacs/CVS/OpenSSH:防止密码弹出 [英] Emacs / CVS / OpenSSH: preventing password popup

查看:23
本文介绍了Emacs/CVS/OpenSSH:防止密码弹出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的 Ubuntu 上网本上以全屏模式使用 GNU Emacs.当我编辑受版本控制的文件并点击 C-x v v 以提交最新更改时,将打开一个 OpenSSH 弹出窗口并询问我的存储库所在服务器的密码.

I'm using GNU Emacs on my Ubuntu netbook in fullscreen mode. When I edit files that are under version control and hit C-x v v to commit the latest changes, an OpenSSH popup window will open and ask me for my password for the server on which my repository lives.

不幸的是,由于全屏模式,弹出窗口不会出现在前面,我无法输入密码.但它仍然是模态的,所以我也不能回到 emacs 并且,比如说,离开全屏模式(或者做任何其他事情,比如 C-g).我基本上被困了.

Unfortunately, because of the fullscreen mode, the popup window will not come up front and I cannot enter my password. But it's still somehow modal, so I also can't go back to emacs and, say, leave fullscreen mode either (or do anything else, like C-g). I'm basically trapped.

作为一个 emacs 用户,我觉得弹出窗口的想法无论如何都很恶心;-) 所以理想情况下,我想在 minibuffer 中被要求提供 ssh 密码.我该如何调整我的设置来实现这一点?(我更喜欢每次都输入密码,而不是将密钥对存储在 ~/.ssh/中).

As an emacs user, I find the idea of popup windows disgusting anyway ;-) so ideally, I'd like to be asked for the ssh password in the minibuffer. How can I tweak my setup to make that happen? (I prefer to type in my password every time instead of storing a keypair in ~/.ssh/).

推荐答案

您可以在启动 emacs 之前(或在另一个 shell 中)使用 ssh-agent.

You could use ssh-agent before launching emacs (or in another shell).

这篇关于Emacs/CVS/OpenSSH:防止密码弹出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆