Question: how ssh got port 22?
Answer: The story of getting SSH port 22 It was a time when telnet and FTP were widely used. Anyway, I designed SSH to replace both telnet (port 23) and ftp (port 21). Port 22 was free. ... Port numbers were allocated by IANA (Internet Assigned Numbers Authority).