Github publickey denied
- Thursday, 30 December 2021 21:04
- Tim Ramsey
If you ever get a publickey denied error while trying to setup a github repo on a hosting account follow these steps.
- Create a new Public/Private SSH on server
- Copy public key and add a “deploy key” on github
- Add your privatekey to the git config
git -c core.sshCommand="ssh -i ~/.ssh/<your_key>" clone firstname.lastname@example.org:<user>/<repo>.git
git config core.sshCommand 'ssh -i ~/.ssh/<your_key>'
#test if key is working
ssh -T -ai ~/.ssh/g<your_key> email@example.com
How to change file permissions after SVN UPDATE
- Tuesday, 12 November 2013 22:15
- Tim Ramsey
I was frustrated because SVN takes umask to assign file permissions for the user and I had one file that needed different permissions to run. After researching for a while at the best approach, I decided to create a 3 line bash script to do change the file permissions afters the svn update.
chmod 644 index.php
I named the file svnupdate.sh so running
from shell changes the directory to public_html, updates the files, and then changes the permissions of the index.php file.
This is not meant to be an elaborate solution, but hopefully will point someone to a direction quicker that it took me.