How I use ssh's connection sharing feature
Following on the basic overview , here's how Iuse OpenSSH's connection sharing feature.
First, since I hate programs that don't exit when I want them to, Idon't let ssh automatically create connection masters. Instead Ialways explicitly create them myself, so that I can do so in a way thatharmlessly parks them in the background. So while I set a ControlPath (to a value mentioned in the previous entry ),I leave ControlMaster set to no , the default.
When
我為什麼這樣懶
看鄧小宇有感
小時候, 在黑漆漆的餐廳吃西餐是奢華享受. 羅宋湯、牛油麵包, 一道道菜吃下去... 長大後不怎對鋸扒再有濃厚興趣, 反而小朋友時代極度討厭的中菜, 卻樂於接受. (可
The basics of ssh's connection sharing feature
Vaguely recent versions of OpenSSH have a feature where you can havemultiple independent sessions running over what is actually oneconnection, even though you ran several separate ssh commands. Theprimary advantage this offers is that new ssh sessions startsignificantly faster, since they don't have to go through all of thecryptography and authentication of a full ssh connection. (As a sidebenefit, there's fewer processes running on either side, since you nolonger need a ssh and an sshd for each active session.)
When
A rule for Internet software
Here is one of the general rules for Internet software:
You cannot count on other people not screwing up.
(You can barely count on you not screwing up.)
Any time you talk to the Internet, you have to assume that someday,the other end will do something that it isn't supposed to by thespecification. People are endlessly creative, which means that sooneror later someone will get pretty much anything wrong that it's possibleto get wrong; for example, they will use permanent HTTP
A feature that I wish Linux package managers had
One of the things that I wish Linux package managers like yum and Apthad was a convenient way of retrieving the original, stock version ofsome file and optionally reinstalling it into its original place. I'dexpect (and wouldn't mind) that this would require re-downloading theoriginal package that the file came from (and thus it was restrictedto packages that were still in the package repository and hadn't beenobsoleted and removed by some more recent package).
You might wonder what use this