From the gitlab using SSH to pull git code error: The remote end hung up unexpected, after the investigation, is the public key generation may have problems, regenerate, and then add SSH key on the Gitlab, pull the replacement code again.
SSH keys allow to establish a secure connection between your computer and Gitla. (SSH kyes for native and code library hosts to build trust. )
Generate SSH Key
Open Git Bash.
Paste the text below, substituting in your GitHub e-mail address.
Shell
Ssh-keygen-t rsa-b 4096-c "your_email@example.com"
# Creates a new SSH key, using the provided email as a label
Generating public/private RSA key pair.
Shell
Enter a file in which to save the key (/USERS/YOU/.SSH/ID_RSA): [Press ENTER]
At the prompt, type a secure passphrase. For more information, the "Working with SSH key passphrases".
Shell
Enter passphrase (empty for no passphrase): [Type a passphrase]
Enter same passphrase again: [Type passphrase again]
Build well, use command to view key, copy to Gitlab.
Cat ~/.ssh/id_rsa.pub