Configure password less login for hammer command line tool.
Issue
-
Each time hammer command is invoked in Satellite terminal, it asks for username and password:
sat [~/.hammer] # hammer organization list [Foreman] Username: admin [Foreman] Password for admin: ---|----------------------|----------------------|------------ ID | NAME | LABEL | DESCRIPTION ---|----------------------|----------------------|------------ 1 | Default Organization | Default_Organization | 3 | Example | Example | ---|----------------------|----------------------|------------ -
How to configure the hammer client on Satellite 6 not to prompt for username and password?
-
Can hammer client be configured to avoid asking user/password every time it is executed?
-
Hammer command line management tool asks for password each time the command is invoked.
-
Even after making required changes in
/etc/foreman-maintain/foreman-maintain.ymlfile, the hammer command still fails with errorInvalid Username and Password.
Environment
- Red Hat Satellite 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.