12-11-2019 12:40 PM
I'm trying to implement secret strings in order to avoid plain text passwords in my yaml files.
All pyats documentation points me to make changes to the "pyats.conf" file. However, I cannot find such a file.
Any idea where this could be? I've used every grep/find command I can think of.
Some of the reference links I'm using:
https://pubhub.devnetcloud.com/media/pyats/docs/configuration/index.html#pyats-configuration
Any help greatly appreciated!
01-17-2021 03:25 PM
Hi Robert,
I know it is an old thread, did you find the location of pyats.conf file?
I am having the same problem now.
Thank you in advance.
09-03-2025 06:50 AM
Hello,
Where can I find the pyats.conf file?
pyats version 25.7
Using the default YAML encoding key since no key was specified in configuration.
THIS IS A SHARED KEY AND IS NOT SECURE, PLEASE RUN `pyats secret keygen` AND ADD TO YOUR pyats.conf FILE BEFORE ENCODING ANY VALUES.
collected 1 item
09-04-2025 04:55 AM
On Linux/Mac the default configuration file is /etc/pyats.conf - If you don't have a pyats.conf file, you can create one in any of these locations. You can also create one by running the pyats secret keygen command.
09-04-2025 07:14 AM
@bigevilbeard
I created one manually
But running the pyats secret keygen command does not create one.
Running PyATS 25.7
Thanks
09-04-2025 07:19 AM
@assadniang as i understand the pyats secret keygen command does not create the pyats.conf file for you. Its purpose is to generate the encryption key string that you then manually add to a pyats.conf file you have already created.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide