不小心把sshkey给删掉了,我现在重新生成了sshkey,在gitlab上面也添加了,但是现在push代码报错
求支招,怎么破?
系统 OSX 10.11
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
View the C:Usersusername.sshknown_hosts 文件 你会发现你之前的key gitlab.test.org,192.168.0.180 ssh-rsa key_string file content in the user’s home directory, which probably looks like this. You can try it
C:Usersusername.sshknown_hosts
gitlab.test.org,192.168.0.180 ssh-rsa key_string
Is it the added public key? The public key is in ~/.ssh/id_rsa.pub. Are you sure there is no error in adding it?
~/.ssh/id_rsa.pub
If that doesn’t work, why not try using SSH instead of using HTTPS?
View the
C:Usersusername.sshknown_hosts
文件 你会发现你之前的keygitlab.test.org,192.168.0.180 ssh-rsa key_string
file content in the user’s home directory, which probably looks like this. You can try itIs it the added public key? The public key is in
~/.ssh/id_rsa.pub
. Are you sure there is no error in adding it?If that doesn’t work, why not try using SSH instead of using HTTPS?