I'm using emacs tramp mode to remotely edit files over ssh. The problem is that every time I save the file I'm editing I have to enter my user password. I find that very annoying. How can I write my password only once / editing session?
相关问题
- Symbol's function definition is void: declare-
- How can I implement password recovery in an iPhone
- JavaScript File Transfer SSH
- How can I set the SVN password with Emacs 23.1 bui
- Emacs shell: save commit message
相关文章
- Check if directory exists on remote machine with s
- ess-rdired: I get this error “no ESS process is as
- TeamCity Username / password
- Emacs/xterm color annoyance on Linux
- Git Clone Fails: Server Certificate Verification F
- Test if File/Dir exists over SSH/Sudo in Python/Ba
- Can't access AWS CodeCommit with SSH
- Pipe less to Emacs
Using public key (RSA) authentication is more secure and much more convenient. On a GNU/Linux system (and maybe others, I don't know) you typically would unlock your private key once per login session with a password and then use it.
In addition to Trey Jackson's solution, there are a few more ways you can choose:
If you're on a *nix system, you can mount the remote directory with FUSE/SSHFS, and therefore you can edit files as they were on the local file system.
Use SSH public key authentication.
use SSH public key authentication.
Ah, from the tramp docs on password caching you can set:
which requires the package password-cache.el.
Also, in the tramp sources, it mentions reading the ssh-agent(1) man page, which shows how to set it up so that you don't have to re-enter passwords (inside, or outside of Emacs):