Ошибка SSH: «Не файл ключа RSA1 ~/.ssh/id_rsa.», «key_type_from_name: unknown key type '-----BEGIN'»

git push heroku master

возвращает:

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

Это первый раз, когда я пытаюсь нажать на героку.

  • heroku loginвозвращает «Аутентификация прошла успешно»
  • ~/.ssh/id_rsa изначально был создан клиентом командной строки heroku — я запустил heroku loginв первый раз, и он спросил, Я хотел сгенерировать ключ.
  • Я воссоздал ключи, используя ssh-keygen -t rsa(как указано здесь), а затем попытался снова, но тщетно.
  • Создал "authorized_keys" в "~/.ssh" и с моим открытым ключом в нем, не повезло.
  • Создал файл /etc/hosts.allow с содержимым «sshd all», но безрезультатно.

Права доступа к ключам: "-rw-------" Статус Heroku в порядке. Я использую Mac OS X 10.7.

ssh -vvv myloginname@heroku.com

возвращает:

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            
10
задан culix 31 August 2012 в 11:12
поделиться