git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
zebinary
V2EX  ›  git

求助,centos6上ssh -T [email protected]已成功,但是cloen我自己的私有项目提示403

  •  
  •   zebinary · Sep 13, 2013 · 5207 views
    This topic created in 4626 days ago, the information mentioned may be changed or developed.
    1、公钥已经生产设置成功
    ssh -T [email protected]
    Hi zebinary! You've successfully authenticated, but GitHub does not provide shell access.

    2、但是clone私有项目失败,403错误
    git clone https://github.com/zebinary/proj_name ./local_repo
    Initialized empty Git repository in /path/to/local_repo/.git/
    error: The requested URL returned error: 403 while accessing https://github.com/zebinary/proj_name /info/refs

    3、这是我自己私有项目

    请大侠指点下。
    4 replies    1970-01-01 08:00:00 +08:00
    mongodb
        1
    mongodb  
       Sep 13, 2013   ❤️ 1
    but GitHub does not provide shell access.


    在github网站设置里添加你的公钥
    msg7086
        2
    msg7086  
       Sep 14, 2013   ❤️ 1
    https是走登录账号密码通道,ssh才是走公钥通道
    wzzyj8
        3
    wzzyj8  
       Sep 14, 2013   ❤️ 1
    git clone [email protected]:ooxx/ooxxooxx.git

    clone的时候复制地址的文本框下面有行小字,地址选择ssh格式即可,如果你的网络不允许ssh端口,可以用443端口的:
    https://help.github.com/articles/using-ssh-over-the-https-port
    zebinary
        4
    zebinary  
    OP
       Sep 14, 2013
    @msg7086 确实是这个问题,换了链接就ok了。感谢。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5419 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 62ms · UTC 09:16 · PVG 17:16 · LAX 02:16 · JFK 05:16
    ♥ Do have faith in what you're doing.