2013-04-20 14 views
36

Sto provando a creare un file .ssh/config per più account SSH (in particolare per github.com). Ho provato diversi tutorial e github per aiutare i walk-through ma niente sembra funzionare.Github SSH Config

Ho creato un id_rsa_test e id_rsa_test.pub. Ho caricato id_rsa_test.pub su github.

Ho quindi creato un file ~/.ssh/config con il seguente:

# github account 
Host github.com-test github.com 
    Hostname github.com 
    User git 
    IdentifyFile ~/.ssh/id_rsa_test 

e

# github account 
Host github.com-test github.com 
    Hostname github.com 
    User git 
    IdentifyFile ~/.ssh/id_rsa_test.pub 

ho quindi provare diversi comandi. cioè .:

git clone [email protected]:username/my_project.git 

git push 

... ogni volta che ottengo il seguente errore:

/home/username/.ssh/config: line 5: Bad configuration option: IdentifyFile 
/home/username/.ssh/config: terminating, 1 bad configuration options 
fatal: The remote end hung up unexpectedly 

Qualche suggerimento?

+0

IL TUO INCREDIBILE! L'unica cosa che ho dimenticato era il ** IdentityFile ~/.ssh/id_rsa_test.pub ** grazie! ** TUTTI ** non dimenticare il **. Pub ** pure. –

risposta

100

È IdentityFile con una "t", non IdentifyFile.

+2

Wow ... una lunga settimana e inizi a commettere errori stupidi. Grazie! – Rico

+16

e sei famoso in Google – juanpastas

+9

wow, probabilmente avrei riso a questa risposta .. Tuttavia, ho appena fatto lo stesso errore:/ – CodeGodie

Problemi correlati