Question: what is the difference between telnet and ssh also write their port numbers?
Answer: Telnet uses the port 23 and it was designed specifically for local area networks. SSH on other hand runs on port 22 by default however it can be easily changed. As compared to SSH Telnet is less secured. Telnet transfers the data in simple plain text.