मैं एकाधिक एसएसएच खातों (विशेष रूप से github.com के लिए) के लिए .ssh/config फ़ाइल बनाने की कोशिश कर रहा हूं। मैंने कई ट्यूटोरियल और जीथब की कोशिश की है, चलने में मदद करता है लेकिन कुछ भी काम नहीं करता है।गीथूब एसएसएच कॉन्फ़िगर
मैंने id_rsa_test
और id_rsa_test.pub
बनाया। मैंने id_rsa_test.pub
को जिथब में अपलोड किया।
# github account
Host github.com-test github.com
Hostname github.com
User git
IdentifyFile ~/.ssh/id_rsa_test
और
# github account
Host github.com-test github.com
Hostname github.com
User git
IdentifyFile ~/.ssh/id_rsa_test.pub
मैं तो कई आदेशों का प्रयास करें:
मैं उसके बाद निम्न के साथ एक ~/.ssh/config
फ़ाइल बनाई। यानी .:
git clone [email protected]:username/my_project.git
git push
... हर मैं निम्नलिखित त्रुटि मिलती है:
/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
कोई सुझाव?
आपका आश्चर्यजनक! एक चीज़ जिसे मैं भूल गया था ** पहचान फ़ाइल ~/.shsh/id_rsa_test.pub ** धन्यवाद! ** हर कोई ** ** पब ** भी मत भूलना। –