2012-05-22 10 views
8
git push heroku master 

रिटर्न:SSH त्रुटि: "नॉट ए RSA1 कुंजी फ़ाइल ~/.ssh/id_rsa।" "Key_type_from_name: अज्ञात कुंजी प्रकार '----- BEGIN'"

ssh_exchange_identification: read: Connection reset by peer  
fatal: The remote end hung up unexpectedly. 

यह वह जगह है पहली बार मैंने Heroku को धक्का देने की कोशिश की है।

  • heroku login रिटर्न "प्रमाणीकरण सफल रहा"
  • ~/.ssh/id_rsa मूल रूप Heroku कमांड लाइन ग्राहक द्वारा बनाया गया था - मैं पहली बार के लिए heroku login भाग गया और यह पूछा कि क्या मैं एक कुंजी उत्पन्न करना चाहता था।
  • मैंने ssh-keygen -t rsa (जैसा निर्दिष्ट here निर्दिष्ट किया है) का उपयोग करके कुंजियां फिर से बनाईं और फिर फिर से कोशिश की लेकिन व्यर्थ में।
  • "~/.ssh" पर "अधिकृत_की" बनाया गया और इसमें मेरी सार्वजनिक कुंजी के साथ, कोई भाग्य नहीं।
  • सामग्री "sshd सब" के साथ /etc/hosts.allow बनाया गया, अभी भी कोई भाग्य नहीं है।

कुंजी पर अनुमतियां हैं: "-rw -------" हेरोोक स्थिति ओके है। मै मैक ओएस एक्स 10.7 का उपयोग कर रहा हूं।

ssh -vvv [email protected] 

रिटर्न:

OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011 
debug1: Reading configuration data /etc/ssh_config 
debug1: Applying options for * 
debug2: ssh_connect: needpriv 0 
debug1: Connecting to heroku.com [50.19.85.132] port 22. 
debug1: Connection established. 
debug3: Not a RSA1 key file ~/.ssh/id_rsa. 
debug2: key_type_from_name: unknown key type '-----BEGIN' 
debug3: key_read: missing keytype  
debug3: key_read: missing whitespace 
debug3: key_read: missing whitespace 
debug3: key_read: missing whitespace  
debug3: key_read: missing whitespace 
debug3: key_read: missing whitespace 
debug3: key_read: missing whitespace 
debug3: key_read: missing whitespace 
debug3: key_read: missing whitespace 
debug3: key_read: missing whitespace 
debug3: key_read: missing whitespace  
debug3: key_read: missing whitespace  
debug3: key_read: missing whitespace  
debug3: key_read: missing whitespace  
debug3: key_read: missing whitespace  
debug3: key_read: missing whitespace  
debug3: key_read: missing whitespace  
debug3: key_read: missing whitespace   
debug3: key_read: missing whitespace   
debug3: key_read: missing whitespace    
debug3: key_read: missing whitespace    
debug3: key_read: missing whitespace    
debug3: key_read: missing whitespace    
debug3: key_read: missing whitespace    
debug3: key_read: missing whitespace   
debug3: key_read: missing whitespace    
debug2: key_type_from_name: unknown key type '-----END'    
debug3: key_read: missing keytype    
debug1: identity file ~/.ssh/id_rsa type 1    
debug1: identity file ~/.ssh/id_rsa-cert type -1    
debug1: identity file ~/.ssh/id_dsa type -1    
debug1: identity file ~/.ssh/id_dsa-cert type -1    
ssh_exchange_identification: read: Connection reset by peer    
+0

एक अनुपयोगी या अमान्य निजी कुंजी की तरह खुशबू द्वारा ownd किया गया था। फ़ाइल ~/.ssh/id_rsa कैसे बनाई गई? –

+0

हेरोकू कमांड लाइन क्लाइंट ने इसे पहली बार पूछा, "हेरोकू लॉगिन" चलाते हुए पूछा गया कि क्या मैं एक उत्पन्न करना चाहता हूं (मेरे पास पहले से कोई नहीं था)। फिर पुन: बनाने के लिए मैंने "ssh-keygen -t rsa" का उपयोग किया। – rishabhjain

+0

क्या यह पहले काम करता था, और फिर रुक गया? यदि आप '$ heroku लॉगिन 'चलाते हैं तो आपको क्या मिलता है? – Schneems

उत्तर

0

अगर मैं

ssh -vvv [email protected]

कोशिश मैं इस मिल:

debug2: key_type_from_name: unknown key type '-----END' 
... 
debug3: check_host_in_hostfile: filename ~/.ssh/known_hosts 
debug3: check_host_in_hostfile: match line 1 
debug3: check_host_in_hostfile: filename ~/.ssh/known_hosts 
debug3: check_host_in_hostfile: match line 2 
debug1: Host 'heroku.com' is known and matches the RSA host key. 
debug1: Found key in ~/.ssh/known_hosts:1 
debug2: bits set: 500/1024 
debug1: ssh_rsa_verify: signature correct 

आप ~/.ssh/ में एक known_hosts फ़ाइल है? खान में heroku.com,50.19.85.154 ssh-rsa और 50.19.85.132 ssh-rsa के लिए प्रविष्टियां हैं। क्या आपके पास है?

यदि आप which ssh-keygen करते हैं, तो ssh-keygen का कौन सा संस्करण चलाया जा रहा है? क्या यह उचित प्रतिलिपि है जिसका इस्तेमाल हो रहा है/जिसे हेरोोक टूलबल्ट द्वारा स्थापित किया गया था? यदि नहीं, तो शायद Heroku Managing Keys article के चरण मान्य कुंजी नहीं बना रहे हैं?

3

मुझे एक ही समस्या थी (हेरोकू पर नहीं) लेकिन मेरे अपने सर्वर पर।

कोशिश /var/log/auth.log मेरी authorized_keys फाइल में देखने के लिए गलत उपयोगकर्ता

संबंधित मुद्दे