Unable to push/pull from VSCode ssh terminal

Error: connect ECONNREFUSED /run/user/0/vscode-git-002c36cb93.sock
    at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1146:16) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '/run/user/0/vscode-git-002c36cb93.sock'
}
git: 'credential-osxkeychain' is not a git command. See 'git --help'.
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/haoweilou/project.git/'

But it runs normally if I connect to my VPS by running ssh on my laptop’s terminal. So it is not the VPS’s problem. Somehow, VSCode cannot push/pull the git request