Results 1 to 2 of 2

Thread: SSH Config + Github

  1. #1
    Join Date
    Nov 2010
    Beans
    39

    SSH Config + Github

    I'm trying to create a ~/.ssh/config file to handle multiple ssh users and seem to be doing it wrong.

    For my specific problem I'm trying to get a Github account to work correctly.

    I have a github account with
    Code:
    git@github.com:username/my_project.git
    .

    I created a
    Code:
    id_rsa_git
    file (with .pub file). I uploaded my .pub file to github.

    I created a config file with:
    Code:
    # github account
    Host github.com-test
            HostName github.com
            User git 
            IdentifyFile ~/.ssh/id_rsa_git.pub
    ...and...
    Code:
    # github account
    Host github.com-test
            HostName github.com
            User git 
            IdentifyFile ~/.ssh/id_rsa_git
    I try to clone/push with the following command:

    Code:
    git clone git@github-test:username/my_project.git
    or
    Code:
    git push
    and I always get the following error:

    Code:
    /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
    Any suggestions?
    Last edited by ricomoss; April 20th, 2013 at 05:49 AM.

  2. #2
    Join Date
    Nov 2010
    Beans
    39

    Re: SSH Config + Github

    I figured it out. So, it helps when you spell correctly.
    Code:
    IdentityFile
    not
    Code:
    IdentifyFile
    .

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •