Thursday, 22 February 2024

Errors when ssh to github but don't has permission

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

Publish npm package

  Để publish   pav-kit  lên NPM, bạn hãy làm theo các bước dưới đây. Tôi đã tạo thêm file  index.js  để đảm bảo gói tin hợp lệ. Bước 1: Tạo ...