Hello! I have a weird bolt issue: - I'm trying to ...
# bolt
j
Hello! I have a weird bolt issue: • I'm trying to connect to a server with my id_rsa key • SSH as root with that key to that server works • Server's host key is in the known keys file • Bolt fails to connect with a message saying it has tried (none, publickey) as auth methods
Copy code
root@puppet:~# ssh -i /root/.ssh/id_rsa root@nixagent2
Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-1025-gcp x86_64)

root@nixagent2:~# exit
logout
Connection to nixagent2 closed.

root@puppet:~# bolt command run 'pwd' -u root --private-key /root/.ssh/id_rsa --targets nixagent2
Started on nixagent2...
all authorization methods failed (tried none, publickey)
Failed on nixagent2:
  Authentication failed for user root@nixagent2
Failed on 1 target: nixagent2
Ran on 1 target in 0.44 sec