What is SSH and how does it work?

What is SSH and how does it work?

February 19, 2019
3 min read
1219 views
0

What is SSH

SSH stands for Secure Shell or Secure Socket Shell. It's developed by SSH Communications Security Ltd. Secure Shell is a program to log into another computer over a network, to execute commands in a remote machine, and to move files from one machine to another. It's a network protocol that gives users, particularly system administrators, a secure way to access a computer over an unsecured network. It provides strong authentication and encrypted data communications. It is a replacement for rlogin, rsh, rcp, and rdist.

The first version of SSH appeared in 1995 and was designed by Tatu Ylönen, who was, at the time, a researcher at Helsinki University of Technology and later went on to start SSH Communications Security, a cybersecurity vendor based in Waltham, Mass.

The protocol specification distinguishes between two major versions, referred to as SSH-1 and SSH-2. The standard TCP port for SSH is 22. SSH is generally used to access Unix-like operating systems, but it can also be used on Windows. Windows 10 uses OpenSSH as its default SSH client.

Why is SSH used?

SSH protects a network from attacks such as IP spoofing, IP source routing, and DNS spoofing. An attacker who has managed to take over a network can only force ssh to disconnect. He or she cannot play back the traffic or hijack the connection when encryption is enabled.

When using ssh slogin (instead of rlogin) the entire login session, including transmission of a password, is encrypted; therefore it is almost impossible for an outsider to collect passwords.

If SSH is used for remote shell login and file copying, these security threats can be greatly diminished. This is because the SSH client and server use digital signatures to verify their identity. Additionally, all communication between the client and server systems is encrypted. Attempts to spoof the identity of either side of communication does not work, since each packet is encrypted using a key known only by the local and remote systems.

SSH is widely used by network administrators for managing systems and applications remotely, allowing them to log into another computer over a network, execute commands and move files from one computer to another.

How does SSH protocol work?

  • The protocol works in the client-server model, which means that the connection is established by the SSH client connecting to the SSH server.

  • The SSH client drives the connection setup process and uses public key cryptography to verify the identity of the SSH server.

  • After the setup phase, the SSH protocol uses strong symmetric encryption and hashing algorithms to ensure the privacy and integrity of the data that is exchanged between the client and the server.

SSH Command in Linux

The 'ssh' command provides a secure encrypted connection between two hosts over an insecure network. This connection can also be used for terminal access, file transfers, and for tunneling other applications. Graphical X11 applications can also be run securely over SSH from a remote location. Linux typically uses the OpenSSH client. The ssh command to log into a remote machine is very simple. To log in to a remote computer called sample.ssh.com.



Stock photo from Funtap

Was this article helpful?Vote to let the author know
0
Share this article

Loading comments...

Related Articles

Why Proactive Technology Management Matters for Growing Businesses

Why Proactive Technology Management Matters for Growing Businesses

Proactive technology management helps businesses prepare for these demands rather than simply responding when something goes wrong. By regularly reviewing systems, identifying risks and planning improvements, growing companies can build a stronger technology foundation for the future.

4 views
Read More
Read full article: Why Proactive Technology Management Matters for Growing Businesses
Free AI Tools Every Developer Should Try in 2026

Free AI Tools Every Developer Should Try in 2026

The good news is that developers are better served by genuinely free options than almost any other audience. This article covers the categories where free tools are actually usable, and what to watch out for.

6 views
Read More
Read full article: Free AI Tools Every Developer Should Try in 2026
The Weld Decides The Rating

The Weld Decides The Rating

The component rating covers the component. What determines how much the installed anchor can actually take is the weld holding it there and the structure underneath it, and neither of those came from the manufacturer

61 views
Read More
Read full article: The Weld Decides The Rating