I'm trying to get more information on configuring public key ssh authentication for device groups in oxidized. I've looked at the oxidized documentation as well as a few forum posts I've found semi-related to this topic, but I've not found anything that provides the correct syntax so far.
Here is a portion of my oxidized config showing what I currently have for public key ssh authentication:
groups:
hp:
username: user
publickey: /home/oxidized/.ssh/id_rsa.pub
privatekey: /home/oxidized/.ssh/id_rsa
vars:
auth_methods: publickey
And here is the output of one of the debug logs for a switch using public key authentication:
2019-02-22 21:29:18 UTC Inappropriate ioctl for device [Errno::ENOTTY] /var/lib/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/prompt.rb:44:in 'noecho' /var/lib/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/prompt.rb:44:in 'ask' /var/lib/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/key_factory.rb:66:in 'rescue in load_data_private_key' /var/lib/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/key_factory.rb:59:in 'load_data_private_key' /var/lib/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/key_factory.rb:43:in 'load_private_key' /var/lib/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/key_manager.rb:142:in 'sign' /var/lib/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/methods/publickey.rb:62:in 'authenticate_with' /var/lib/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/methods/publickey.rb:20:in 'block in authenticate' /var/lib/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/key_manager.rb:122:in 'block in each_identity' /var/lib/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/key_manager.rb:119:in 'each' /var/lib/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/key_manager.rb:119:in 'each_identity' /var/lib/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/methods/publickey.rb:19:in 'authenticate' /var/lib/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/session.rb:80:in 'block in authenticate' /var/lib/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/session.rb:66:in 'each' /var/lib/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/session.rb:66:in 'authenticate' /var/lib/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh.rb:237:in 'start' /var/lib/gems/2.3.0/gems/oxidized-0.21.0/lib/oxidized/input/ssh.rb:49:in 'connect' /var/lib/gems/2.3.0/gems/oxidized-0.21.0/lib/oxidized/node.rb:65:in 'run_input' /var/lib/gems/2.3.0/gems/oxidized-0.21.0/lib/oxidized/node.rb:42:in 'block in run' /var/lib/gems/2.3.0/gems/oxidized-0.21.0/lib/oxidized/node.rb:37:in 'each' /var/lib/gems/2.3.0/gems/oxidized-0.21.0/lib/oxidized/node.rb:37:in 'run' /var/lib/gems/2.3.0/gems/oxidized-0.21.0/lib/oxidized/job.rb:9:in 'block in initialize'
I've asked this in the Oxidized forums and their gitter channel, but I haven't received any responses. I appreciate any assistance! Thanks.
No comments:
Post a Comment