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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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):