Answer the question
In order to leave comments, you need to log in
Is it possible to specify the key to the server when cloning a git repository via ssh?
Is it possible when cloning a git repository via ssh to specify the key to the server, as it is on ssh: ssh [email protected] -i ./key_file
I tried: git clone [email protected]:repo.git -i ./key_file
but it didn’t work. Read man on git - not a word about keys.
PS I know about ssh-add, but this is not what you need, you need one line without calling ssh-add
Answer the question
In order to leave comments, you need to log in
Perhaps this will answer your question Multiple SSH Keys settings for different github account + first comment.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question