This [email protected] account is to be used by the git client 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 the SSH key of my user is the same one that is registered in Bitbucket, it identifies it recognizes me but blocks me, for obvious reasons, access.
However, doing the same with sudo
, you will be using another user, more precisely 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 a key, much less the host , hence you will be asked to add it (in root ) and since there is no key, git ".