How SSH works

4rkal
Quick Code
Published in
3 min readApr 19, 2022

--

If you work in the IT industry, you’ve undoubtedly heard of ssh. But how does it work?

SSH (secure shell) is a network protocol that allows two computers to connect securely over the internet. SSH uses encryption to prevent hackers from reading data sent between two connected devices.

SSH is divided into three layers:

https://phoenixnap.com/kb/wp-content/uploads/2021/04/layers-of-ssh-protocol-1.png

During and after authentication, the transport layer establishes safe and secure communication between a client and a server. It is in charge of data encryption, decryption, and integrity assurance. It also provides data compression and caching, which helps to speed up data communication.

The authentication layer informs the client about the available authentication methods. It’s also in charge of the whole user authentication procedure.

After the authentication is successful, the connection layer oversees the communication between the machines. It manages communication channel opening and closure, as well as multiple channels for multiple sessions.

Session Encryption

The server sends the client a list of supported encryption protocols after receiving a connection request. The public key is used by the server as an authentication technique.

--

--

4rkal
Quick Code

Programmer, crypto enthusiast . Posting about mostly tech , programming. Website: https://4rkal.com/