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

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

  •  
  •   zebinary · Sep 13, 2013 · 5679 views
    This topic created in 4821 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
    mongodb
    Sep 13, 2013❤️1
    1
    but GitHub does not provide shell access.


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

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