V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
zebinary
V2EX  ›  git

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

  •  
  •   zebinary · 2013-09-13 23:38:45 +08:00 · 4210 次点击
    这是一个创建于 3875 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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 条回复    1970-01-01 08:00:00 +08:00
    mongodb
        1
    mongodb  
       2013-09-13 23:58:22 +08:00   ❤️ 1
    but GitHub does not provide shell access.


    在github网站设置里添加你的公钥
    msg7086
        2
    msg7086  
       2013-09-14 03:43:21 +08:00   ❤️ 1
    https是走登录账号密码通道,ssh才是走公钥通道
    wzzyj8
        3
    wzzyj8  
       2013-09-14 06:52:07 +08:00   ❤️ 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
       2013-09-14 08:16:28 +08:00
    @msg7086 确实是这个问题,换了链接就ok了。感谢。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5863 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 06:20 · PVG 14:20 · LAX 23:20 · JFK 02:20
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.