惠普@LAPTOP-KU9E2OI5 MINGW64 /d/AllCode/Git/learngit (master) $ ssh -T git@github.com The authenticity of host 'github.com (20.205.243.166)' can't be established. ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU. This key is not known by any other names. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Could not create directory '/c/Users/\\273\\335\\306\\325/.ssh' (No such file or directory). Failed to add the host to the list of known hosts (/c/Users/\\273\\335\\306\\325/.ssh/known_hosts). git@github.com: Permission denied (publickey).
惠普@LAPTOP-KU9E2OI5 MINGW64 /d/AllCode/Git/learngit (master) $ ssh-add D:/AllCode/Blog/ssh_keys/id_rsa Enter passphrase for D:/AllCode/Blog/ssh_keys/id_rsa:
惠普@LAPTOP-KU9E2OI5 MINGW64 /d/AllCode/Git/learngit (master) $ ssh-add D:/AllCode/Blog/ssh_keys/id_rsa Enter passphrase for D:/AllCode/Blog/ssh_keys/id_rsa: Identity added: D:/AllCode/Blog/ssh_keys/id_rsa (sut060106@gmail.com)
惠普@LAPTOP-KU9E2OI5 MINGW64 /d/AllCode/Git/learngit (master) $ ssh -i D:\\AllCode\\Blog\\ssh_keys\\id_rsa -T git@github.com Warning: Identity file D:AllCodeBlogssh_keysid_rsa not accessible: No such file or directory. The authenticity of host 'github.com (20.205.243.166)' can't be established. ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU. This key is not known by any other names. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Could not create directory '/c/Users/\\273\\335\\306\\325/.ssh' (No such file or directory). Failed to add the host to the list of known hosts (/c/Users/\\273\\335\\306\\325/.ssh/known_hosts). Hi 0xMarch-food! You've successfully authenticated, but GitHub does not provide shell access.
惠普@LAPTOP-KU9E2OI5 MINGW64 /d/AllCode/Git/learngit (master) $ git push -u origin master Enumerating objects: 9, done. Counting objects: 100% (9/9), done. Delta compression using up to 16 threads Compressing objects: 100% (3/3), done. Writing objects: 100% (9/9), 662 bytes | 132.00 KiB/s, done. Total 9 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0) To github.com:0xMarch-food/learngit47.git * [new branch] master -> master branch 'master'set up to track 'origin/master'.