我遵循了github手册Generating SSH keys,但我有以下输出:
$ ssh -Tv git@github.com
OpenSSH_6.8p1, OpenSSL 1.0.2a 19 Mar 2015
debug1: Reading configuration data /home/juan/.ssh/config
debug1: /home/juan/.ssh/config line 1: Applying options for *
debug1: /home/juan/.ssh/config line 8: Applying options for github.com
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to github.com [192.30.252.131] port 22.
debug1: Connection established.
debug1: identity file /home/juan/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/juan/.ssh/id_rsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.8
debug1: Remote protocol version 2.0, remote software version libssh-0.6.0
debug1: no match: libssh-0.6.0
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-sha2-256 none
debug1: kex: client->server aes128-ctr hmac-sha2-256 none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
Connection to 192.30.252.131 timed out while waiting to read
archlinux
~/.ssh/config
为空,我的/etc/ssh/sshd_config
有默认配置。另外,我有以下文件:
$ ls -al ~/.ssh
total 16K
drwx------ 2 juan users 4.0K may 8 11:42 ./
drwxr-xr-x 75 juan users 4.0K may 8 11:45 ../
-rw------- 1 juan users 1.7K may 7 23:22 id_rsa
-rw-r--r-- 1 juan users 403 may 7 23:22 id_rsa.pub
当我这样做时,我会得到与预期不同的东西。
$ ssh-add -l
2048 SHA256:KWw15AkdJnqJ3dZQ+t8uEdLoBpIlj0ELtgH1K7GWC1c /home/juan/.ssh/id_rsa (RSA)
我已经问过,但我不知道为什么我被否决了。拜托,我真的迷路了,因为我无法通过https推动而且我是新手。