debian 7.1配置了git和ssh,ssh -T github无反应(新手)

最大的社区版本,Ubuntu的发源地
回复
doyouhaobaby
帖子: 3
注册时间: 2013-08-04 10:27
系统: debian7.1

debian 7.1配置了git和ssh,ssh -T github无反应(新手)

#1

帖子 doyouhaobaby » 2013-08-04 10:36

根据一些教程设置好了git,ssh等等

在终端输入
ssh -T [email protected]

没有反应,
只有通过ctrl+c退出。


git clone https://github.com/xxx/xxx.git可以
doyouhaobaby
帖子: 3
注册时间: 2013-08-04 10:27
系统: debian7.1

Re: debian 7.1配置了git和ssh,ssh -T github无反应(新手)

#2

帖子 doyouhaobaby » 2013-08-04 11:23

直接ssh [email protected] 可以。

ssh [email protected] 就不可以。


==================================
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '207.97.227.239' (RSA) to the list of known hosts.
PTY allocation request failed on channel 0
Hi dyhb! You've successfully authenticated, but GitHub does not provide shell access.
Connection to 207.97.227.239 closed.
root@localhost:~/.ssh# ssh -T [email protected]
^C
root@localhost:~/.ssh# ssh [email protected]
PTY allocation request failed on channel 0
Hi dyhb! You've successfully authenticated, but GitHub does not provide shell access.
Connection to 207.97.227.239 closed.
root@localhost:~/.ssh# ssh [email protected]
^C
root@localhost:~/.ssh# [email protected]
bash: [email protected]: 未找到命令
root@localhost:~/.ssh# ssh [email protected]
PTY allocation request failed on channel 0
Hi dyhb! You've successfully authenticated, but GitHub does not provide shell access.
Connection to 207.97.227.239 closed.
root@localhost:~/.ssh#
doyouhaobaby
帖子: 3
注册时间: 2013-08-04 10:27
系统: debian7.1

Re: debian 7.1配置了git和ssh,ssh -T github无反应(新手)

#3

帖子 doyouhaobaby » 2013-08-04 11:29

头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

Re: debian 7.1配置了git和ssh,ssh -T github无反应(新手)

#4

帖子 millenniumdark » 2013-08-04 14:46

估計是網絡便秘。這應該不是debian的問題。妳可以到其他系統下試下,估計一樣的問題。


既然ip可以通,那可以設置下~/.ssh/config

代码: 全选

Host github.com
    Hostname 207.97.227.239
這樣應該可以了。
回复