razrlele
V2EX  ›  问与答

如何取消 github 的账号密码认证而改用 ssh?

  •  
  •   razrlele · Aug 1, 2014 · 3541 views
    This topic created in 4340 days ago, the information mentioned may be changed or developed.
    我之前没有设置ssh,一直都是通过输入username/password来push,然后我现在设置了ssh密钥,可是每一次push还是要我输入username/password,应该怎么改成ssh push呢?
    4 replies    2014-08-01 10:27:15 +08:00
    cnallenzhao
        1
    cnallenzhao  
       Aug 1, 2014
    我猜是你remote的repo的地址设置的是http或https吧,要设成ssh才可以。
    Sevnx
        2
    Sevnx  
       Aug 1, 2014 via Android
    地址换成git的形式
    jsonline
        3
    jsonline  
       Aug 1, 2014
    git remote set-url origin git@...
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2577 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 09:49 · PVG 17:49 · LAX 02:49 · JFK 05:49
    ♥ Do have faith in what you're doing.