Currently we are having Git repository which is configured with srvapps (service account).I can sudo to the Git server using this account (username - srvapps and password - my login password).
My application is running on the username "srvapps" and all the directories is owned by the srvapps:srvapps (username/group)
But for some reason, if do scp from my git server to application server to copy the new files, it says permission denied.
From my Git server - I have used following commands -
scp -r new_file srvapps@app1:\home_git\apps - Its asking for srvapps password.
scp -r new_file myuserid@app1:\home_git\apps - It says permission denied.
Could you pls let me know, what i am doing wrong here?