Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Log into one of the instructional servers (amdpool, linuxpool-01, ph314-#)
  2. Type "ssh-keygen -t rsa -f $HOME/.ssh/ece-git".   Note, do NOT share the private key that is created, it will allow anyone to use your account!
  3. Create a file $HOME/.ssh/config.   The contents should be:
    No Format
    
    Host    augean.ece.cornell.edu
            IdentityFile    ~/.ssh/ece-git
            User git
    host     *
            IdentityFile    ~/.ssh/id_rsa
            User <yournetid>
    
    Omit the "<" and ">" around your netid
  4. Set the permissions on your .ssh folder and subfiles, this is VERY IMPORTANT or you will compromise the security of your own account.
    No Format
    cd $HOME
    chmod 700 .ssh
    cd .ssh
    chmod 600 *
    cd $HOME
    
  5. Wait 5-10 minutes
  6. Create your project and push it to the GIT server, for example:
    No Format
    mkdir myprojects
    cd myprojects
    git clone git@augean.ece.cornell.edu:projects/<netid>/project1
    cd project1
    
  7. Copy/move the files you want to share to that folder and then sitting in that folder:
    No Format
    git add *
    git commit -m "Initial Commit"
    git push origin master
    
  8. Set permisisons on the project
    No Format
    ssh git@augean.ece.cornell.edu perms -h
    
  9. The output will tell you how to add users to allow them to read or write to your project.   Users have to have a valid ECE account to access.

...