I am trying to use deployment keys for a repository which belongs to an organization (for which I am an administrator).
I created a private/public key pair, the public was pasted into the 'deployment keys' window, and accepted. I then tried to connect via git pull from a distant repository:
git add origin git@myserver.com:/organization/therepo.git
git pull
I keep being asked for the password for the user git. I tried to use instead the users git, gogs, <my login>, <the name or the organization> -- I am being asked for the password every time.
I tried a simple ssh -v to check which key is provided to gogs: it is the right one (the private key above, corresponding to the deployment (public) key).
Which user should I use to connect?