├── LISENCE.txt ├── SimplePhotoView.java └── readme.txt /LISENCE.txt: -------------------------------------------------------------------------------- 1 | What are GitHub's SSH key fingerprints? 2 | 3 | Public key fingerprints can be used to validate a connection to a remote server. 4 | 5 | GitHub's public key fingerprints, in hexadecimal, format are: 6 | 7 | 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48 (RSA) 8 | ad:1c:08:a4:40:e3:6f:9c:f5:66:26:5d:4b:33:5d:8c (DSA) 9 | 10 | GitHub also uses SSHFP DNS records to securely publish our SSH key fingerprints. You can query for our SSHFP records using the command below: 11 | 12 | dig SSHFP github.com +nostats +nocomments +nocmd 13 | # ;github.com. IN SSHFP 14 | # github.com. 300 IN SSHFP 2 1 7491973E5F8B39D5327CD4E08BC81B05F7710B49 15 | # github.com. 300 IN SSHFP 1 1 BF6B6825D2977C511A475BBEFB88AAD54A92AC73 16 | 17 | Resolving issues when verifying fingerprints 18 | 19 | If you try to automatically verify your fingerprint with ssh and the "VerifyHostKeyDNS yes" configuration, you may still receive a prompt to verify the key. For example: 20 | 21 | ssh -T -o "VerifyHostKeyDNS yes" git@github.com 22 | # The authenticity of host 'github.com (192.30.252.129)' can't be established. 23 | # RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. 24 | # Matching host key fingerprint found in DNS. 25 | # Are you sure you want to continue connecting (yes/no)? 26 | 27 | "VerifyHostKeyDNS yes" is supposed to prevent this prompt, but only if the fingerprints are retrieved from a zone signed with DNSSEC. We haven't added DNSSEC to our infrastructure yet, but it's in the roadmap. 28 | 29 | You can find more about this in the debug output of the same command: 30 | 31 | # debug1: Server host key: RSA 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48 32 | # debug3: verify_host_key_dns 33 | # debug1: found 2 insecure fingerprints in DNS 34 | # debug1: matching host key fingerprint found in DNS 35 | 36 | If you're curious, there are some more details about this behavior on the ssh_config(5) man page. 37 | 38 | On OS X, you may also see an error about "No matching host key fingerprint found in DNS." For example: 39 | 40 | ssh -T -o "VerifyHostKeyDNS ask" git@github.com 41 | # The authenticity of host 'github.com (192.30.252.130)' can't be established. 42 | # RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. 43 | # No matching host key fingerprint found in DNS. 44 | # Are you sure you want to continue connecting (yes/no)? yes 45 | # Warning: Permanently added 'github.com,192.30.252.130' (RSA) to the list of known hosts. 46 | # Hi jnewland! You've successfully authenticated, but GitHub does not provide shell access. 47 | 48 | The resolver on OS X doesn't properly implement DNSSEC, so when openssh tries to look up the fingerprint in DNS, it fails. You can see this in the verbose output of the same SSH command: 49 | 50 | # debug1: Server host key: RSA 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48 51 | # debug3: verify_host_key_dns 52 | # DNS lookup error: general failure 53 | 54 | -------------------------------------------------------------------------------- /SimplePhotoView.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shen0834/wangyue-learngit/906a99d059a2a5765148a504e0900e37b15e348b/SimplePhotoView.java -------------------------------------------------------------------------------- /readme.txt: -------------------------------------------------------------------------------- 1 | Git is a distributed version control system. 2 | Git is free software distributed under the GPL 3 | Git has a mutable index called stage of file xxxxxxxx 4 | --------------------------------------------------------------------------------