cjohansson / emacs-ssh-deploy

A deployment plugin via Tramp for Emacs.
GNU General Public License v3.0
152 stars 6 forks source link

Trigger decryption of .authinfo.gpg #46

Closed cjohansson closed 5 years ago

cjohansson commented 6 years ago

If you start a fresh emacs and go to a deployed file that is using asynchronous transfer and has it's connection password stored inside .authinfo.gpg the connection won't work, emacs will ask for password in the separate process. But if you change the connection transfer to synchronous, this will trigger the automatic decryption of .authinfo.gpg and after that it will work asynchronously as well.

Somehow we should find a way to trigger a decryption of .authinfo.gpg for TRAMP it haven't been done already to avoid this issue.

cjohansson commented 5 years ago

Fixed in this commit

By using ange-ftp-netrc-filename, it is now sent to asynchronous process

(setq ange-ftp-netrc-filename "~/.authinfo.gpg")