SSH: What happens behind the scenes