Getting permission denied (public key) on gitlab

前端 未结 30 2504
太阳男子
太阳男子 2020-12-02 04:27

My problem is that I can\'t push or fetch from GitLab. However, I can clone (via HTTP or via SSH). I get this error when I try to push :

Permission de

30条回答
  •  情歌与酒
    2020-12-02 04:59

    Two things mainly

    1. You must have id_rsa.pub and id_rsa (private) keys in your .ssh folder ( which should be in your home folder.Create it if it isn't there put your keys ). It wouldn't work If you have named your key files differently

    2. Change the permission of the id_rsa as chmod 400 ~/.ssh/id_rsa

提交回复
热议问题