Skip to content

Instantly share code, notes, and snippets.

@izikeros
Last active July 17, 2024 22:38
Show Gist options
  • Save izikeros/21fcbb20b628f4d2b9ceeb614f523bbc to your computer and use it in GitHub Desktop.
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
# 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