Received disconnect from 35.231.145.151: 2: Connection blocked because server only allows public key authentication. Please contact your network administrator

Hi, I get above error when I try to do pull from my gitlab project.
I’ve done following steps to no avail:

  1. remove old ~/.ssh/known_hosts file
  2. do git pull , to update known_hosts with new ECDSA key
    Even after above step, it still does not work.
    I though maybe the issue is with my ssh package, I tried cloning a open source package from github, I was able to clone it. Then I tried cloning a open source repo from gitlab, it gave me the same error.
    Can any one point me in any direction to debug this issue?
    Error I’ve been receiving :
    Please contact your system administrator.
    Add correct host key in /home/user/.ssh/known_hosts to get rid of this message.
    Offending ECDSA key in /home/user/.ssh/known_hosts:1
    remove with: ssh-keygen -f “/home/user/.ssh/known_hosts” -R gitlab.com
    Password authentication is disabled to avoid man-in-the-middle attacks.
    Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks.
    Received disconnect from 35.231.145.151: 2: Connection blocked because server only allows public key authentication. Please contact your network administrator.
    fatal: Could not read from remote repository.

Please make sure you have the correct access rights