Cloning git repo causes error - Host key verification failed. fatal: The remote end hung up unexpectedly

前端 未结 4 1305
甜味超标
甜味超标 2020-12-12 17:07

I am using SSH to clone a git repo to my web server, but every time I get this error

$git clone git@github.com:aleccunningham/marjoram.git
Cloning into marjo         


        
4条回答
  •  情歌与酒
    2020-12-12 17:21

    The issue could be that Github isn't present in your ~/.ssh/known_hosts file.

    Append GitHub to the list of authorized hosts:

    ssh-keyscan -H github.com >> ~/.ssh/known_hosts

提交回复
热议问题