用git cmd pull 或push 时提示密码错误的解决方法
2017-12-11 15:04
260 查看
有时候准备pull的时候却发现密码怎么输也输不对,提示的信息是没有权限或者密码错误,如下:
如果出现以上类似的报错提示的话不妨试一下生成ssh-key的方法。步骤如下
在终端输入
如果执行成功。返回
后面的几步提示都可以直接回车
把刚才上面显示的存储的地址放在vi编译器里运行会生成如下代码
$ git pull git@git.***.com's password: Permission denied, please try again. git@git.***.com's password: Permission denied, please try again. git@git.***.com's password: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
如果出现以上类似的报错提示的话不妨试一下生成ssh-key的方法。步骤如下
在终端输入
ssh-keygen -t rsa -C "self name" //self name为用户名
如果执行成功。返回
Generating public/private rsa key pair. Enter file in which to save the key (/home/forwhat.cn/.ssh/id_rsa):
后面的几步提示都可以直接回车
$ ssh-keygen -t rsa -C "self name" Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/*****/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /c/Users/*****/.ssh/id_rsa. Your public key has been saved in /c/Users/*****/.ssh/id_rsa.pub. The key fingerprint is: SHA256:ut9Y****Wwg*******8PYsvs4v+iDlk8xXqb++YkmM self name The key's randomart image is: +---[RSA 2048]----+ | .o. | | ooo | | . *. | |. . o o | |... . S | | =o. . + . | |o.+oo . + o | |++Eo.oo O | |=BO+=+++=O.. | +----[SHA2756]-----+ (敏感已处理)
把刚才上面显示的存储的地址放在vi编译器里运行会生成如下代码
vim /c/Users/*****/.ssh/id_rsa.pub(你的公钥) //例 ssh-rsa AAAAB3NzaC1..............vvo1+xSKvIXLhjqvoHoyoj8oDkOycZeaOASJhbOT+6xvTuGutM/3SDoFkFzHjL34CnGLyX sell name
相关文章推荐
- 用git cmd pull 或push 时提示密码错误的解决方法
- Gerrit 执行 git pull 的时候,提示 fatal: Out of memory, malloc failed (tried to allocate *** bytes)错误的解决方法
- Git pull、 push 操作无需输密码的方法
- windows下Git pull、 push 操作无需输密码的方法
- git pull/push时提示输入账号密码之免除设置
- 解决git pull/push每次都需要输入密码问题
- 新建域时提示“administrator账户密码不符合要求”错误解决方法
- Git Pull Push 避免用户名和密码方法
- Intellij IDEA 中提示 Error Updating Changes xxx git xxx 错误的解决方法
- 添加码云上的SSH公钥以及解决使用命令git pull/push 输入密码问题
- Mysql 第二次运行时提示密码错误,就是进不去的解决方法
- git命令行pull,push解决每次都输入用户名密码
- win7访问Linux Samba的共享目录提示“登录失败:用户名或密码错误”解决方法
- git pull/push项目的时候总是提示要输入用户名密码的解决方案
- WebStorm无法安装gulp-htmlbuild,提示git clone … undefined错误的解决方法
- cygwin下git提示输入用户名或密码不接受响应的解决方法
- git pull push 不用输入用户名和密码的方法 免输密码
- win7访问Linux Samba的共享目录提示“登录失败:用户名或密码错误”解决方法
- .Exchange 2010 OWA可以登录POP3提示密码错误解决方法
- git pull/push时候总提示输入账号密码 - 免除设置