1. not add config for authentication
~/.ssh/config
Host github.com
IdentityFile ~/.ssh/ssh_github_vps
Host bitbucket.org
IdentityFile ~/.ssh/ssh_bitbucket_vps
2. Wrong user authentiaction
- you access to user by user user_xxx
- you don't have permission to call git clone then you use sudo => you is root user
=> wrong user in config of ssh => error don't has permission
Fix:
- whoami => user_xxx
- groups => groups u in => user_xxx
sudo chow -R user_xxx:user_xxx www
(www is folder has source)
Thank you
No comments:
Post a Comment