• 解决使用Git遇到的:Enter passphrase for key '/Users/zhangxiaoxue/.ssh/id_rsa'问题


    创建SSH Key

    ssh-keygen -t rsa -C "youremail@example.com"
    

    在生成SSH Key时,如果不小心设置了passphrase,使用SSH协议克隆远程仓库时,在每次git pull和git push时都会提示Enter passphrase for key '/Users/zhangxiaoxue/.ssh/id_rsa',每次都要手动输入密码才能继续操作,可以在命令行输入sh-keygen -p进行重新设置,直接回车输入为空,就没有密码了。

    zhangxiaoxue@MacBook-Pro learn-git % ssh-keygen -p
    Enter file in which the key is (/Users/zhangxiaoxue/.ssh/id_rsa): 
    Enter old passphrase: 
    Key has comment 'sybil3904@163.com'
    Enter new passphrase (empty for no passphrase): 
    Enter same passphrase again: 
    Your identification has been saved with the new passphrase.
    
  • 相关阅读:
    CF div2 332 A
    vector resize 错误用法
    linux命令之 chown
    dlmalloc 编译 链接
    C++ 类 访问限制
    C++ 编译多态 运行多态
    libevent 编译 Windows
    浮点数小记
    NYOJ 435 棋盘覆盖(二)
    HDU 3555 Bomb 简单数位DP
  • 原文地址:https://www.cnblogs.com/Lotus3904/p/14727790.html
Copyright © 2020-2023  润新知