I am using sed
to replace a placeholder in a script with my public ssh key. The character /
is definitely present in some SSH keys, how can I find out which character I can use as delimiter for sed
?
I am looking for an answer of either the set of all characters that can be part of the string generated by ssh-keygen
, or which characters are guaranteed not to.
The public key in opnessh format is base64-encoded
as mentioned for example in the manual page for sshd
. Therefore you can use any character that is not in the list of base64 characters. The /
is there but for example |
can be used safely (though in the comment section can be anything).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With