On my server I have my personal user and I have another application user(app).
I'm su to the (app) user I setup my git remote origin - my git conf file now looks like this:
cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = [email protected]:example/mysite.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
Problem being is that in order to ssh into git it needs to use my personal ssh key under my user (not under the app user) - how is this usually handled? creating a new ssh key for my (app) user doesn't seem great - is there a config way thats understood to point to my users .ssh/key?