Próbuję utworzyć plik .ssh/config dla wielu kont SSH (specjalnie dla github.com). Wypróbowałem kilka samouczków i porad dotyczących pomocy Github, ale nic nie działa.Github SSH Config
Utworzono id_rsa_test
i id_rsa_test.pub
. Przesłałem id_rsa_test.pub
do github.
Następnie utworzony plik ~/.ssh/config
z następujących czynności:
# github account
Host github.com-test github.com
Hostname github.com
User git
IdentifyFile ~/.ssh/id_rsa_test
i
# github account
Host github.com-test github.com
Hostname github.com
User git
IdentifyFile ~/.ssh/id_rsa_test.pub
I spróbuj kilka poleceń. tj .:
git clone [email protected]:username/my_project.git
git push
... za każdym razem pojawia się następujący błąd:
/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
jakieś sugestie?
TWÓJ AMAZING! Jedną rzeczą, o której zapomniałem, było ** IdentityFile ~/.ssh/id_rsa_test.pub ** dziękuję! ** KAŻDY ** nie zapomnij również ** pubu **. –