he Man in the Middle attack fail with the Secure Shell protocol and why does the Man in the Middle attack fail with the Secure Sockets Layer protocol?…

Why does the Man in the Middle attack fail with the Secure Shell protocol and why does the Man in the Middle attack fail with the Secure Sockets Layer protocol?