I'm attempting to write a script to generate SSH Identity key pairs for me. from M2Crypto import RSA key = RSA.gen_key(1024, 65337) key.save_key("/tmp/my.key", cipher=None) The file /tmp/my.key looks great now. By running ssh-keygen -y -f /tmp/my.key > /tmp/my.key.pub I can extract the public key. My question is how can I extract the public key from python? Using key.save_pub_key("/tmp/my.key.pub"
2010-01-21 23:08 | tag: linux ã¤ã³ã¿ã¼ãããä¸ã®ãµã¼ãã®sshdã®è¨å®ã§ãæ¥ç¶ã§ãããã¹ãã®IPã¢ãã¬ã¹ãéå®ããã¨ããéç¨ã¯å¤ãã¨æãã¾ãããã®ãããªéç¨ãè¡ã£ã¦ããå ´åãç®çã®ãµã¼ãã«æ¥ç¶ããããã«ã¯ã以ä¸ã®ããã«ä¸æ¦ãããã·ï¼è¸ã¿å°ï¼ãµã¼ãã«æ¥ç¶ãã¦ãããããã¦ç®çã®ãµã¼ãã«æ¥ç¶ããã¨ããæä½ã¨ãªããããç ©éã§ãã â æ¦å¿µå³ |ã¯ã©ã¤ã¢ã³ã| --(ssh)--> |ãããã·ãµã¼ã| --(ssh)--> |ç®çã®ãµã¼ã| â æé 1. ã¯ã©ã¤ã¢ã³ããããããã·ãµã¼ãã«å¯¾ãã¦sshã§æ¥ç¶ããã°ã¤ã³ã (user_proxyã¯ãããã·ãµã¼ãä¸ã®ã¦ã¼ã¶ã¼) $ ssh [email protected] 2. ãããã·ãµã¼ãããã¯ã©ã¤ã¢ã³ãã«å¯¾ãã¦sshã§æ¥ç¶ããã°ã¤ã³ã (user_destã¯ç®çã®ãµã¼ãä¸ã®ã¦ã¼ã¶ã¼) $ ssh us
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}