linux中的ssh密钥用于puttygen返回错误

时间:2017-02-10 11:15:52

标签: linux ssh putty

我有这个文件id_rsa

SSH-RSA AAAAB3NzaC1yc2EAAAADAQABAAABAQDTiVnCW4e59HeLtIdpuzgqiynTth1C + PfEMfGb7k9f1qpeSfwOuENNHlON21Vkcz5ppUh03 + d4wuD7RnV8F + sTQqc delete part of chars fk6ORShdkrrqG6H5VOsMBJmke41SXG8ltUJh + kAJJFJ7QtER1JHAGUUIv5RIDu2d2QjAw7ogpeXSgoJAol0spWHobv1 + JmPk / GcPfRPzfbFzS7oviGLiuHeu + Oro3R0P merrymaker14 @ MXXX-系统 - 产品名称

但PuTTy密钥生成器,如果我尝试加载此kay,则返回错误not a private key。这是怎么回事?

1 个答案:

答案 0 :(得分:1)

我猜是id_rsa.pub(公钥)。 id_rsa(私钥)类似于:

-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEA0/RhRTMp78Z7V84Y7zE4geLA+ZLb94Rokg8uc4xtdATXT/pF
MIGLD3wOEPM8CzTKGO08dBCNH+OSuxqTC+h/sjPjTjrtuyTvhw1Po4PJTmjvKtHm
5VE.............................................................
FLaaTQKBgBZNGBIAgszmbOwLKZz7J3mZTI/ev63VA02GLFdIXyqnKF3EWYP7Wpxc
oq/PWLpkWsT/G8RRJ7a+GapCCciF8P7x59xIDD2p9YzqZl5KrlewiacOcvMB9MBt
//1yfL8QOnlPhHbwmG7Vnsf+L8GnGzDqDOEffR3NtCnTI4V11Nmo
-----END RSA PRIVATE KEY-----