1

I have a list of hosts 192...* with a default user and password, I've tried to set wild-card in .authinfo.gpg but it still requests password when I try to login.

There are no problems when it set per host IP.

0

AFAIK, the auth-source package does not support host wildcards. Tramp is using this package for password handling.

  • So, can I populate .authinfo.gpg with range or network? 192.168.1.1/24 as an example? – Hellseher Aug 30 '18 at 20:00
  • 1
    I'm not aware of such a feature, see the auth-source manual (info "(auth)"). Maybe you write a wishlist request via the Emacs Bug Tracker. – Michael Albinus Aug 31 '18 at 7:39
  • What about just using ssh keys and adding the key to the hosts you want to login with. With modern key rings and ssh agent, you won't need to enter passwords apart from the initial ssh-agent one – Tim X Jul 10 at 12:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.