The first step is to find Edit and click preferences
The second step is to find Console applactions, and then click Edit
The third step is to modify
change into:
"D:\XSHELL7\Xshell.exe" -url telnet://%h:%p -newtab %d
Pay attention to the location of Xshell.exe in the double quotes, pay attention to the format, the other is the same, and then click ok
The fourth step click apply, then click ok
gns3 has successfully connected to xshell