contact@embeddedgeeks.com
Embedded World

Telnet & SSH

Telnet

Telnet is a network protocol that allows a user to communicate with a remote device. It is a virtual terminal protocol used mostly by network administrators to remotely access and manage devices. Administrators can access the device by telnetting to the IP address or hostname of a remote device.

To use telnet, you must have software (Telnet client) installed. On a remote device, a Telnet server must be installed and running. Telnet uses TCP port 23 by default.

One of the greatest disadvantages of this protocol is that all data, including usernames and passwords, is sent in clear text, which is a potential security risk. This is the main reason why Telnet is rarely used today and is being replaced by a much secure protocol called SSH. 

On Windows, you can start a Telnet session by typing the telnet IP_ADDRESS or HOSTNAME command:

telnet windows

SSH (Secure Shell)

SSH is a network protocol used to remotely access and manage a device. The key difference between Telnet and SSH is that SSH uses encryption, which means that all data transmitted over a network is secure from eavesdropping. SSH uses public-key encryption for such purposes.

Like Telnet, a user accessing a remote device must have an SSH client installed. On a remote device, an SSH server must be installed and running. SSH uses TCP port 22 by default.

Here is an example of creating an SSH session using Putty, a free SSH client:

putty