Git clone using SSH always require password
Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.
A user creates a test repo, with public key and SSH enabled, but
$ git clone firstname.lastname@example.org:7999:repo1 Cloning into 'repo1'... email@example.com's password:
A password authentication is required and cloning is not possible.
The address the user is trying to clone is different to what the application expects.
As written on Enabling SSH access to Git repositories in Bitbucket Server, the SSH URL should be similar to:
The correct SSH URL that you should be using for a git clone operation should be available through the Bitbucket server UI when you browse through the repo, click on ... and then Clone:
If you are doing that correctly, please review Set up SSH for Git.