print private key to stdout
0
I'm trying to print the contents of private key file to stdout using ssh-keygen tool ssh-keygen man pages has options like -e -i -f for exporting and importing a key file. However am not getting it. Edit: My scenario: Consider 2 users user1 and user2 user1 is a higher privileged user. user2 is a low privileged user who can run ssh-keygen binary as user1 (sudo). now user2 needs to see private key content(cat). but this cannot be done. Because the private key permissions is set to 600. How can i acheive this or my assumption is anyway wrong?
ssh
share | improve this question
edited 2 days ago
...