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?
IL TUO INCREDIBILE! L'unica cosa che ho dimenticato era il ** IdentityFile ~/.ssh/id_rsa_test.pub ** grazie! ** TUTTI ** non dimenticare il **. Pub ** pure. –