I guess the idea is if someone is really out to get you, they could modify your kernel/boot image to include something malicious (e.g. a keylogger module) and you wouldn't know.
Taking a guess here, the problem is that you're logging into GitHub via public key credentials but when you 'sudo su' to get into '/srv/http' you're now accessing root's public keys and none of them are in your GitHub account.
Edit: So to resolve, you should probably generate a new key pair for root & add it to your GitHub account.
I'm not sure exactly what you're asking, but the whole point of the AUR is for people to share PKGBUILDs (something that describes how to compile a package from source).
That is, you must build AUR packages every time there is an update because all that is distributed is the source.
Everyone here is recommending an ssh agent (and that will probably work), but here is an alternative that is imo simpler: SSH ControlMaster. What the following config options will do is actually cache/keep open all SSH connections for however long you specify (Google it for a better/more detailed explanation).
# add this to ~/.ssh/config
Host *
ControlMaster Auto
ControlPath ~/.ssh/cm/%r@%h:%p
ControlPersist 10m
If you don't want this enabled for all of your ssh connections, change the "*" above to "github.com". Also change the "10m" to however long you think is appropriate. So instead of caching your credentials, this persists the connection. (As a side effect, if you don't push/pull anything for a while you will see a timeout message, but this can be ignored. Simply means that next time you push/pull you will need to login again.)
bspwm !
I guess the idea is if someone is really out to get you, they could modify your kernel/boot image to include something malicious (e.g. a keylogger module) and you wouldn't know.
Taking a guess here, the problem is that you're logging into GitHub via public key credentials but when you 'sudo su' to get into '/srv/http' you're now accessing root's public keys and none of them are in your GitHub account.
Edit: So to resolve, you should probably generate a new key pair for root & add it to your GitHub account.
Edit Edit: Do what /u/Katana__ said.
I'm not sure exactly what you're asking, but the whole point of the AUR is for people to share PKGBUILDs (something that describes how to compile a package from source).
That is, you must build AUR packages every time there is an update because all that is distributed is the source.
Everyone here is recommending an ssh agent (and that will probably work), but here is an alternative that is imo simpler: SSH ControlMaster. What the following config options will do is actually cache/keep open all SSH connections for however long you specify (Google it for a better/more detailed explanation).
If you don't want this enabled for all of your ssh connections, change the "*" above to "github.com". Also change the "10m" to however long you think is appropriate. So instead of caching your credentials, this persists the connection. (As a side effect, if you don't push/pull anything for a while you will see a timeout message, but this can be ignored. Simply means that next time you push/pull you will need to login again.)