Error while recognizing SSH Ubuntu?

0

Next I have a serious problem, I never happened to this problem with me from ssh in linux, from day to day the ssh key stopped working, I tried to repeat the process to make a new one, but nothing happened, and always that I tried to connect with my repository gave the message that I will leave in print, if someone can help me please I'm afraid that this happens in my work

    
asked by anonymous 04.12.2018 / 00:51

1 answer

1

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 ".

    
05.12.2018 / 00:43