Last active
July 17, 2024 22:38
-
-
Save izikeros/21fcbb20b628f4d2b9ceeb614f523bbc to your computer and use it in GitHub Desktop.
[convert ssh2 public key to openssh] Convert ssh2 public key to openssh format and add to authorized_keys #ssh #key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# if received key in format: | |
#—- BEGIN SSH2 PUBLIC KEY —- | |
# | |
#Comment: "rsa-key-20160402" | |
#AAAAB3NzaC1yc2EAAAABJQAAAgEAiL0jjDdFqK/kYThqKt7THrjABTPWvXmB3URI | |
# | |
# and you want to add it to authorized keys | |
# from: https://tutorialinux.com/convert-ssh2-openssh/ | |
ssh-keygen -i -f coworker.pub >> ~/.ssh/authorized_keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment