Skip to content

Mic92/ssh-to-pgp

Repository files navigation

ssh-to-pgp

Convert SSH RSA keys to GPG keys

Usage

  • Exports the private:
$ ssh-to-pgp -private-key -i $HOME/.ssh/id_rsa -o private-key.asc
2504791468b153b8a3963cc97ba53d1919c5dfd4
  • Exports the public key:
$ ssh-to-pgp -i $HOME/.ssh/id_rsa -o public-key.asc
2504791468b153b8a3963cc97ba53d1919c5dfd4

Install with nix

$ nix-shell -p 'import (fetchTarball "https://github.com/Mic92/ssh-to-pgp/archive/main.tar.gz") {}'

Install with go

$ go get github.com/Mic92/ssh-to-pgp