Deployer setup with vps bare repo [closed]

I need some help, for the past 3-4 days I tryed everything, nothing works.

Setup deployer / symfony app inside vps.
I delete /domain/public_html/.dep/repo

Set deployer repository :

  1. deploy@aliasname:/path, I get this : ssh: Could not resolve hostname Temporary failure in name resolution fatal: Could not read from remote repository.
  2. deploy@ip:/path, I get this : Permission denied (publickey).fatal: Could not read from remote repository.
  3. file:///path : deploy succes but site has 500 error. I have to sudo chown -R phpUser:phpUserGroup on /var/www/domain so the site works. Then, redo deploy, and it fails with this error :
    error in update_code.php on line 100:
    [vps] run cd /var/www/domain.com/public_html/.dep/repo && (/usr/bin/git config –get remote.origin.url)
    [vps] exit code 1 (General error) . ERROR: Task deploy:update_code failed!

repo is set to vps inside /home/deployer/repo/domain.git
I can ssh with deployer no problem (with the aliasname)
remote is set to aliasname:/path-to-git-repo
ubuntu / nginx

any other information needed I will provide.

Best regards !