SSH control master #141
Replies: 1 comment 2 replies
-
Thank you for your concern. I think ControlMaster should be a good feature. ControlMaster that enables the sharing of multiple sessions over a single network connection. This means that we can connect to the server once, and have all other subsequent ssh sessions use the initial connection without need for re-authentication. This will significantly speed up the time to open new duplicated ssh shell and sftp, especially when the network quality is not good. In addition, taking this opportunity, I am also refactoring the network module of WindTerm. In the old design, the login wizard, SSH authentication, shell, and filer(sftp, local file system) were all implemented in the same c++ class, which made it impossible to open a shell or filer separately. So this time I put the above functions into modules independently, which greatly improves the freedom of use of these functions. Let me give three examples to illustrate the advantages of such a change. The first one, if you have used VSCode, you should use its terminal. Now WindTerm/WindEdit have the same feature, a The second one, not only WindEdit can have the The third one, WindTerm will have the ability to quickly transfer files between two servers. Usually, you will use The above mentioned are all related to ControlMaster. They are so convenient because there is no need to log in multiple times. Of course, automatic login can also have a similar effect, but first, it will increase the burden on the server, and second, the speed will be slower. Unfortunately, since the initial design did not consider the independent use of features, the changes are very large. Almost 800~1000 functions and more than10,000 lines of code need to be refactored. So the progress is a bit slow, and I am still trying to do this. The most important and most difficult thing is that all existing functions need to be ensured to be normal. This requires me to re-test almost all functions. But I think it is worth it. |
Beta Was this translation helpful? Give feedback.
-
You mentioned next in the list of planned feature is ssh control master. Curiosity really, what are you hoping to do with it?
Beta Was this translation helpful? Give feedback.
All reactions