...
Do NOT share your private keys, you could lose data as well as your account privileges. It is your responsibility for the security of your account.
Example:
No Format |
---|
ssh-keygen -t rsa -f $HOME/.ssh/ece-gitecho "Host augean.ece.cornell.edu" > $HOME/.ssh/config
echo " IdentityFile ~/.ssh/ece-git" >> $HOME/.ssh/config
echo " User git" >> $HOME/.ssh/config
echo "Host *" >> $HOME/.ssh/config
echo " IdentityFile ~/.ssh/id_rsa" >> $HOME/.ssh/config
echo " User zzz123" >> $HOME/.ssh/config
cd $HOME
chmod 700 .ssh
cd .ssh
chmod 600 *
cd $HOME
sleep 300
mkdir myprojects
cd myprojects
git clone git@augena.ece.cornell.edu:projects/zzz123/halo
cd halo
...create a bunch of files...
git add *
git commit -m "Initial Commit"
git push origin master
ssh git@augean.ece.cornell.edu perms -l projects/zzz123/halo
ssh git@augean.ece.cornell.edu perms projects/zzz123/halo + READERS yyy123
ssh git@aguean.ece.cornell.edu perms projects/zzz123/halo + WRITERS xxx123
|