What exactly is the garbled SSH connection failure?

Original link: https://hsiaofeng.com/archives/186.html

connect to the server, prompt

 ssh: Could not resolve hostname xxx.xyz: \262\273\326\252\265\300\325\342\321\371\265\304\326\367\273\372\241\243

Preliminary conversion with Python

 print("\262\273\326\252\265\300\325\342\321\371\265\304\326\367\273\372\241\243")

get string

 ²»ÖªµÀÕâÑùµÄÖ÷»ú¡£

Check the table below, it belongs to “symbol code”, it may be ISO-8859-1 code now.

常见乱码类型

Store it in ISO-8859-1 encoding with VSCode, then open it with GBK, and finally get the string

不知道这样的主机。

This is done.

inspired

https://segmentfault.com/q/1010000005032290

This article is reproduced from: https://hsiaofeng.com/archives/186.html
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment