But anyone behind the pitcher can of course see the sign, and after seeing a few tens of pitches at most can figure out which sign corresponds to which pitch. Knowing what pitch is coming is a significant advantage to the hitter.
It’s legal for a runner on second to watch the catcher and convey those signs to the pitcher, but in MLB it’s strictly illegal to use “technology” - meaning, mostly, optics or electronics.
The dugout then used the drum banging method to convey that information to the batter.
An opposing team can "steal signs" by looking at the catcher while he's giving his signs and then somehow relay that information to the batter. That way the batter knows what type of pitch is coming. Usually the information is given to the batter by some other type of signal, that's what "banging on the garbage can" was, a signal that a specific type of pitch was coming. (In this case they were signaling if a pitch was going to be an offspeed pitch)
So basically what happened was Astros set up a camera in the outfield aimed at the opposing team's catcher. The catcher would signal for, for example, a breaking ball. Astros employee viewing video feed would see this and then bang on the garbage can to indicate to the batter that the pitch would be offspeed.
It's important to know that "stealing signs" the old fashioned way (without cameras/technology) is legal and part of the game. This is why catchers will give multiple signs when runners are on base, because base runners may be able to look at the catcher while he's giving his signs and relay information to the batter. When the catcher is using multiple signs there's an agreement beforehand between the catcher and the pitcher which of the multiple signs is the "real" sign.
There's a Wikipedia page on sign stealing: https://en.wikipedia.org/wiki/Sign_stealing
In baseball, the pitcher stands in the middle of a diamond-shaped field. They throw the ball towards the opposing team's batter, who tries to hit it. The pitcher's goal is to get the ball past the opposing batter to the catcher, who is squatting on the ground behind the batter.
The catcher, having full view of all the players and being close to the batter, can opt to signal to the pitcher how best to throw the ball to get it past the batter. For example, they may raise 1 finger to throw it as fast as possible ("fastball"), 2 to make it _seem_ look a fastball but actually slow it down ("changeup"), 3 to curve the ball, etc. The catcher does this such that only the pitcher has a good view of it. This is called a "sign".
It's legal for the opposing team to try to see what the catcher is signaling and inform the batter, but not to do so with electronic equipment. The Astros were using video cameras to get a close look at the catcher's signs, then banging a metal drum to inform the batter of what kind of pitch was being signaled.
The article has an embedded Tweet which has a good video demonstrating all this.
A "sign" is a hand signal the catcher makes to the pitcher, indicating which pitch (fastball / curveball / whatever) the pitcher will throw. If the pitcher wants to throw something else, he shakes his head, and the catcher signals something different. Repeat until the pitcher is happy.
The pitcher's rejection is visible to everyone, but the catcher's signal is hidden.
"Stealing signs" does not refer to stealing the key that translates between hand signals and pitch types, so that you can tell by looking at the signal what pitch will be thrown. That's considered obvious. (I mention this because I assumed that's what "stealing signs" would mean.)
Instead, "stealing signs" refers to looking at the catcher when he signals, so that you see the signal. Interpreting it is then up to you. Oddly, this is explicitly legal if you do it by having a runner on second base, but illegal by any other means.
The electronics involved are a small camera mounted somewhere aimed at the catcher. The banging noise is a simple code -- one bang for signal A; two bangs for signal B; three bangs for signal C... the function is to communicate the signal from the guy off in the bowels of the stadium viewing the camera feed, to the batter who wants to know what pitch to prepare for.
As has been said, teams have been stealing signs since the beginning of the sport and it’s an understood or “gentleman’s” rule that it’s acceptable — as long no technology is used and it’s not blatant. However, teams have used body buzzers, buzzers and signals buried by the bases and similar electric and radio devices for close to 100 years or more now, since electricity itself became ubiquitous.
I think they went with the trash can banging because it was somewhat low tech, and maybe less likely or believable for people to pick up on.
What the Astros did was zoom in a camera from the outfield to see this and feed that video straight into the dugout. The person in the dugout with the feed would bang a garbage can (or something) to signal audibly to the person up at bat. Knowing what pitch is coming is a massive advantage for a batter.
It really has to happen in a matter of a second or two in order to work.
Pitchers switch between straight fastballs and slower curveballs and a pitch called a change up that looks like a fastball delivery but comes across the plate slower.
Obviously if the hitter knew what to expect he’d do a lot better. So the astros had a camera that was looking at the signs and feeding them to the dugout. Then when they knew that a good pitch to hit was coming, they’d make a banging sound. It’s not actually super sophisticated.
You’re actually allowed to steal signs from like a runner on second — you’re not allowed to use a camera to do it.
They were hopping off the center field feed. This is the feed that viewers at home see when a pitch is thrown. If someone spent the time at home, you could catalog all the signs between a pitcher and a catcher just fine.
They were looking for offspeed pitches, i.e changeups. This is a pitch used to fake out a batter through a speed change. Most standard pitches are thrown in the 85+ mph range, including the breaking (curve, slider) ball types. Fastballs, with current players, are in the mid-90s+ with a few throwing 100. A changeup is significantly (relatively) slower than these pitches so a batter will swing much earlier than normal and completely miss the ball. However, if the player guesses right or is told this particular pitch is coming, it’s pretty much like hitting a ball off a tee, for all intents and purposes.