This account [email protected] is to be used by the customer of the git and not for remote access:
$ ssh -T [email protected]
logged in as XXXXXXXXXX.
You can use git or hg to connect to Bitbucket. Shell access is disabled.
In this case my user’s SSH key is the same one that is registered in Bitbucket, it recognizes me but blocks me, for obvious reasons, access.
However, by doing the same with the sudo
, you will be using another user, more precisely the root and then...
$ sudo ssh -vv [email protected]
OpenSSH_7.6p1 Ubuntu-4ubuntu0.1, OpenSSL 1.0.2n 7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
...
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa type -1
...
The authenticity of host 'bitbucket.org (18.205.93.1)' can't be established.
RSA key fingerprint is SHA256:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.
Are you sure you want to continue connecting (yes/no)?
It does not identify key and much less the host, then ask you to add it (at root) and since there is no key, it will ask for the user password "git".
You’re really trying to do SSH with the "git" user on the "bitbucket.org" host, check this out?
– Giovanni Nunes
Yes, it always worked and suddenly stopped and gives this log and asks for a password
– Lucas M Domingues
You must add your ssh key to the bitbucket, apparently you changed your key and it no longer recognizes.
– Alessandro Schneider
but I did it and still asks for the password :s
– Lucas M Domingues