You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first line of the RSA keyfile has to be
-----BEGIN RSA PRIVATE KEY-----
However, the "RSA" part is missing when executing the suggested command to generate a test private key.
I had to manually modify the line. Otherwise I would raise an exception every time:
paramiko.ssh_exception.SSHException: not a valid RSA private key file
The text was updated successfully, but these errors were encountered:
I had to actually convert the key using ssh-keygen -p -m PEM -f /temp/test_rsa.key
to get the key in the right format. Just changing the header wasn't enough.
The first line of the RSA keyfile has to be
-----BEGIN RSA PRIVATE KEY-----
However, the "RSA" part is missing when executing the suggested command to generate a test private key.
I had to manually modify the line. Otherwise I would raise an exception every time:
paramiko.ssh_exception.SSHException: not a valid RSA private key file
The text was updated successfully, but these errors were encountered: