1,git@gitlab.*******.com: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). fatal: Could not read from remote repository.
flutter pub get时报这个错,但是我已经配置好ssh了,key也添加到平台上了,在命令行操作也可以git clone,也可以push,就是pub get 的时候不行!!!!气死我了!!!!好吧,我在执行下面这个命令行时就可以了:
ssh-add ~/.ssh/id_rsa
我查了下,该命令是把专用密钥添加到 ssh-agent 的高速缓存中,至于为啥这样就可以了,我也不知道,有知道的小伙伴可以给我说哦。