Error when recognizing Ubuntu SSH?

Asked

Viewed 92 times

0

Next guys I’m with a serious problem,never happened this problem with me of ssh on linux,from one day to the next ssh key stopped working,I tried to repeat the process to make a new but still nothing happened,and whenever I tried to connect with my repository gave the message that I will leave on print,

inserir a descrição da imagem aqui

  • You’re really trying to do SSH with the "git" user on the "bitbucket.org" host, check this out?

  • Yes, it always worked and suddenly stopped and gives this log and asks for a password

  • You must add your ssh key to the bitbucket, apparently you changed your key and it no longer recognizes.

  • but I did it and still asks for the password :s

1 answer

1

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.