SSH will not connect after host authentication request

I have a problem; git returns this warning:

The authenticity of host 'bitbucket.org (104.192.143.2)' can't be established.
RSA key fingerprint is SHA256:zzXQOXSRBEiUtuE8AikJYKwbHaxvSc0ojez9YXaGp1
Are you sure you want to continue connecting (yes/no)?

When I select yes, it returns this:

Warning: Permanently added 'bitbucket.org,104.192.143.2' (RSA) to the list of known hosts.
ssh_packet_read: Connection closed
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

What is the problem?

Where should I add the RSA number? Please, I am in despair. :(

+4
source share
2 answers

Unable to authenticate host "bitbucket.org (104.192.143.2)". RSA key fingerprint - SHA256: zzXQOXSRBEiUtuE8AikJYKwbHaxvSc0ojez9YXaGp1 Are you sure you want to continue the connection (yes / no)?

It is normal and safe to say yes. ssh is excessively paranoid, asking you to confirm this. You can disable it by setting StrictHostKeyCheckingin noin the ssh configuration.

, , ssh, man-in-the-middle. :

, ssh ( SHA256:zzXQ... stuff), ~/.ssh/known_hosts.

ssh , . , bitbucket.org , .

, . -, ssh- . , - bitbucket.org.

, ssh- . , . , DNS- IP- bitbucket.org. Wi-Fi.


, , .

$ git clone git@bitbucket.org:RobeJablonski/sda-robert.git
Cloning into 'sda-robert'...
conq: repository access denied.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

, , ( ). Bitbucket , ssh-. , . , BitBucket.

ssh BitBucket Bitbucket https://bitbucket.org/account/user//ssh-keys/. , ssh . , , ssh -v git@bitbucket.org. , debug1: Offering RSA public key: /Users/blah/.ssh/blah.

, , /Users/blah/.ssh/blah.pub , BitBucket ssh-. , ssh bitbucket.org.

, ssh- bitbucket.org.

+8

Source: https://habr.com/ru/post/1627223/


All Articles