What protocols does SSH use?
For the SSH1 protocol, you can find this information in an old IETF draft available here. It is also available with the source distribution. For the SSH2 protocol, you can find this information in the SSH2 IETF drafts: • SSH Protocol Architecture: draft-ietf-secsh-architecture-04.txt • SSH Connection Protocol: draft-ietf-secsh-connect-06.txt • SSH Transport Layer Protocol: draft-ietf-secsh-transport-06.txt • SSH Authentication Protocol: draft-ietf-secsh-userauth-06.txt • Generic Message Exchange Authentication For SSH: draft-ietf-secsh-auth-kbdinteract-00.