Hi, > However the public-key is showing the caption as ssh-rsa .. and the > private key is displaying the label as "-----BEGIN OPENSSH PRIVATE > KEY----- and -----END OPENSSH PRIVATE KEY-----" > > I am looking to create an rsa key-pairs with 2048b , something we > used to create with the command ssh-keygen -t rsa -b 2048 > The private key must begin with "-----BEGIN RSA PRIVATE KEY-----" and > ends with "-----END RSA PRIVATE KEY-----"
Could you please elaborate why it **must** start with "-----BEGIN RSA PRIVATE KEY-----"? Does your SSH version not accept "-----BEGIN OPENSSH PRIVATE KEY-----"? In any case, I would suggest to look at the private_key_format option of the module. All the best, Felix -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/20240801162036.5072b636%40rovaniemi.