一半君的总结纸

听话只听一半君

准备把各种脑残工具放到github以假装高大上

小弟的脑残工具合集在此https://github.com/oglops/shittyTools
折腾到死,公司里死活不能git push, ssh-keygen 折腾了好几次了,public key也加到github了, 错误提示如下

> ssh -vvv git@github.com
OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010
debug1: Reading configuration data /home/fuck/.ssh/config
debug1: Applying options for *
debug1: /home/fuck/.ssh/config line 7: Deprecated option "FallBackToRsh"
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to github.com [192.30.252.131] port 22.
debug1: Connection established.
debug1: identity file /home/fuck/.ssh/identity type -1
debug3: Not a RSA1 key file /home/fuck/.ssh/id_rsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype
debug1: identity file /home/fuck/.ssh/id_rsa type 1
debug1: identity file /home/fuck/.ssh/id_dsa type -1
ssh_exchange_identification: read: Connection reset by peer

我还以为是我key的格式不对?(不会吧)还试了dsa rsa1 都不行
最后根据github官网SSH的FAQ试出来了:
按照Using SSH over the HTTPS port的说明,在~/.ssh/config里加上了如下内容

Host github.com
  Hostname ssh.github.com
  Port 443

另外 git的config里的url的地址是

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = ssh://git@github.com//.git
Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: