SSHException: not a valid RSA private key file
Published at September 26, 2019 · 1 min read
在使用 paramiko 或 fabric2 通过 private key 连接服务器时会遇到 SSHException: not a valid RSA private key file 的报错,此类问题一般是 private key 的格式,在 macOS 可以使用 brew install puttygen centos/ubuntu 中使用 apt-get install putty-tools or yum install putty 安装 putty ,并通过 puttygen id_rsa -O private-openssh -o new.key 将其转换成 private-openssh 格式,即可按照常规方式使用。...