in reply to Re^2: Net::SSH2 not base64 encoded
in thread Net::SSH2 not base64 encoded
I hope this is not the actual private key you are using but just an example!
Publishing your private keys is a bad idea. Heck, even insufficient randomness in key generation can compromise your systems and your private data.
Never publish a private key you are actually using. If you need to have a keypair for an example or similar, generate a new one and never actually use it in anything else than that example source code. Better yet, ONLY provide the command line for the users to generate their own pair, something like this:
openssl req -new -newkey rsa:4096 -x509 -sha256 -days 36500 -nodes -ou +t exampleserver.crt -keyout exampleserver.key
Or, in the case of openssh:
ssh-keygen
|
|---|