holomorph / transmission

Emacs interface to a Transmission session
GNU General Public License v3.0
85 stars 11 forks source link

Confusion with trying to configure authinfo for access #25

Closed MenacingMecha closed 1 year ago

MenacingMecha commented 1 year ago

Hi, I can successfully access my transmission on my remote host with:

(setq transmission-rpc-auth '(:username "USER" :password "PASS"))

However, this is not ideal for security, and I'm having issues with setting things up in a more secure way.

I've tried:

(setq transmission-rpc-auth '(:username (password-store-get-field "ENTRY" "user") :password (password-store-get "ENTRY")))

But this gives me a wrong type argument: characterp error.

I've also tried just including the :username with the following in .authinfo:

machine HOST login USER password PASS port PORT

But this gives me an Unauthorized user error. I've successfully used .authinfo with IMAP in GNUS, but I'm still not entirely sure how I'm supposed to use it, if it's something big I'm missing.

Could I get some advice on what I'm doing wrong?

MenacingMecha commented 1 year ago

Solved it for my use case by adding :config (auth-source-pass-enable) to my use-package decleration and setting up a pass entry in the format specified in: https://www.gnu.org/software/emacs//manual/html_node/auth/The-Unix-password-store.html