Posted on July 8, 2019 7:37 pm
 |  Asked by Tony Bourke
 |  69 views
RESOLVED
1
0
Print Friendly, PDF & Email

I’ve been playing around with Ansible and using authorized_keys for some of it. I’ve noticed that in vEOS the user directories don’t survive upon reboot. Is there a place I can put authorized_keys files that will survive a reboot to allow password-less logins?

0
Posted by Tony Bourke
Answered on July 8, 2019 7:44 pm

I think I found the answer in a previous post.

Rather than putting it in .ssh, the key goes in the configuration file.

username arista sshkey [pasted contents of public keyfile]

write mem

But I’d be curious to see if there’s a way to have persistent files in a home directory.

0
Posted by Tony Bourke
Answered on July 8, 2019 9:11 pm

OK, I found the answer. I just needed to intensify my googling.

https://ansible-eos.readthedocs.io/en/develop/quickstart.html#preparing-eos-for-ansible

Post your Answer

You must be logged in to post an answer.