Gitlab always reports an error when using the ssh address on the mac book, which boss will be very grateful to you for solving the problem?

Unable to negotiate with 192.168.245.31 port 22: no matching cipher found. Their offer: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se
fatal: Could not read from remote repository.

May.22,2021

check your configuration ~ / .ssh/config and / etc/config to find the line at the beginning of Ciphers, and post the full contents of this line to me. You should have accidentally configured the encryption algorithm and commented out the line Ciphers.


have you added the public key of your mac to gitlab?


first of all, delete the file where the key is located, under the reset on Git Bash,
git config-- global user.name "change here to your user name"
git config-- global user.email "here change to your gitLab mailbox"
Note here is the username, you registered when you setting (user settings) your name, not your Fullname
, that is, your prompt to start a new project mentioned. For example, I create a new project

then, re-generate the key,
ssh-keygen-t rsa-C "fill in the registration mailbox here"
keep pressing enter, until you are prompted for a user name and password, then generate
Open GitLab, Open the SSH Keys page in "settings", then click "Add SSH Key" and fill in the contents of any title, pasted id_rsa.pub file in the Key text box.
id_rsa.pub can open
in a text file. This should solve the problem
your key setting is supposed to be wrong or global user.name and global user.email are wrong
you try

Menu