SSH cannot create a known host directory under windows. What's wrong with it?

problem description

A problem occurred while trying the SSH Git warehouse. The cause is unknown. It is speculated that it is related to the encoding format

.

the most obvious feature is that every time SSH tries to create a garbled directory

Environment

  • windows 10 1809
  • powershell
  • other sh has also tried
  • tried WSL without the same problem

related codes

the error output is as follows

ssh -T git@gitee.com
Could not create directory "C:\\Users\\\345\221\250\345\207\241\346\230\237/.ssh".
The authenticity of host "gitee.com (120.55.226.24)" can"t be established.
Ssh
Oct.30,2021

that is not garbled, it should be that the name of your user folder is in non-English. Wsl is not messy because it uses another file system.
Why don't you just mkdir ~ / .ssh build this directory?

and did you not upload your SSH public key in gitee.com ?

Menu