Puppet ssh keys error

Hi @Inderpreet @player001

Facing below error,

steps I perfromed are:

created file at master with below config.

class ssh_node1 {
ssh_authorized_key { ‘root@jump_host’:
user => ‘tony’,
ensure => ‘present’,
type => ‘ssh-rsa’,
key => ‘AAAAB3NzaC1yc2EAAAADAQABAAABAQCqG/o/u2Jij98V013WNsdi168HN/VoXsFrg+uPeqRLsydsFMlJq6FN/UzVGjh30sLRBTTSYVwLAWVTFiRKYaDTAKHbEkT7mj3TZudVuBvZKrFes4fT0fQkneDM9GGRP7s1rrFnPmW3Njn76GdJlGwGAP4+w6CIyXnz1PdvW0Rww/oXmmboLP4Kc+QIOWXnVuPyenaaD9PF3DCTn6foj3wZGAPTvZOkUS3jWMPUcWbn6P7NEw6mmTof0dhsHv/prHR2SW/zNsvl0OK41g8vq3/P7f6ya/9E+9nKhcbwHJh7j/eD7qcPmTEI4ji5A/4CVPWYaPzOfTFsnjiUmBG5sXjR’
}
}
class ssh_node2 {
ssh_authorized_key { ‘root@jump_host’:
user => ‘steve’,
ensure => ‘present’,
type => ‘ssh-rsa’,
key => ‘AAAAB3NzaC1yc2EAAAADAQABAAABAQCqG/o/u2Jij98V013WNsdi168HN/VoXsFrg+uPeqRLsydsFMlJq6FN/UzVGjh30sLRBTTSYVwLAWVTFiRKYaDTAKHbEkT7mj3TZudVuBvZKrFes4fT0fQkneDM9GGRP7s1rrFnPmW3Njn76GdJlGwGAP4+w6CIyXnz1PdvW0Rww/oXmmboLP4Kc+QIOWXnVuPyenaaD9PF3DCTn6foj3wZGAPTvZOkUS3jWMPUcWbn6P7NEw6mmTof0dhsHv/prHR2SW/zNsvl0OK41g8vq3/P7f6ya/9E+9nKhcbwHJh7j/eD7qcPmTEI4ji5A/4CVPWYaPzOfTFsnjiUmBG5sXjR’
}
}
class ssh_node3 {
ssh_authorized_key { ‘root@jump_host’:
user => ‘banner’,
ensure => ‘present’,
type => ‘ssh-rsa’,
key => ‘AAAAB3NzaC1yc2EAAAADAQABAAABAQCqG/o/u2Jij98V013WNsdi168HN/VoXsFrg+uPeqRLsydsFMlJq6FN/UzVGjh30sLRBTTSYVwLAWVTFiRKYaDTAKHbEkT7mj3TZudVuBvZKrFes4fT0fQkneDM9GGRP7s1rrFnPmW3Njn76GdJlGwGAP4+w6CIyXnz1PdvW0Rww/oXmmboLP4Kc+QIOWXnVuPyenaaD9PF3DCTn6foj3wZGAPTvZOkUS3jWMPUcWbn6P7NEw6mmTof0dhsHv/prHR2SW/zNsvl0OK41g8vq3/P7f6ya/9E+9nKhcbwHJh7j/eD7qcPmTEI4ji5A/4CVPWYaPzOfTFsnjiUmBG5sXjR’
}
}
node ‘stapp01.stratos.xfusioncorp.com’{
include ssh_node1
}
node ‘stapp02.stratos.xfusioncorp.com’{
include ssh_node2
}
node ‘stapp03.stratos.xfusioncorp.com’{
include ssh_node3
}

  1. ssh working from jump host to app server also.

in attached screen shot ssh copy key success also can be seen.

Hello, @bilalshakir41396
switch into the root user - sudo -i or use sudo to run the puppet command.

$ sudo puppet agent -t

Hope it’ll help,