Open In App

Introduction to SSH(Secure Shell) Keys

The SSH(Secure Shell) is an access credential that is used in the SSH Protocol. In other words, it is a cryptographic network protocol that is used for transferring encrypted data over the network. The port number of SSH is 22(Twenty-Two). It allows you to connect to a server, or multiple servers, without having to remember or enter your password for each system that is to log remotely from one system to another. It always comes in key pairs:

Key pairs can be of the following types:



Features of SSH

SSH Functions

There are multiple functions performed by SSH Function, here below are some functions:

SSH Protocol

To provide security between a client and a server the SSH protocol uses encryption. All user authentication and file transfers are encrypted to protect the network against attacks.



SSH Protocol

Techniques Used in SSH

There are majorly three major techniques used in SSH, which are

Symmetric Cryptography

Asymmetric Cryptography

Hashing

Commands in SSH

There are multiple commands supported by SSH protocol, you can tap on the link if you want to know commands in SSH

How does generally WorkThe general asymmetric?

For performing encryption and decryption it uses asymmetric cipher. There are many encryption methods:

rsa, dsa, ed25519 etc. 

The general procedure is:

SSH is key-based authentication that is not prone to brute-force attack. It is more convenient and secure than login IDs and passwords (which can be stolen in the middle). There is no exposure of valid credentials, if a server has been compromised.

Generating an SSH key pair

Open your command prompt
type : ssh-keygen
Press enter
It will ask you for a location. Press Enter for default location.
If its already there, press 'y' to overwrite.
You may enter passphrase as you like, press enter.

An example of generating an SSH Key pair in the latest version of Windows 10 is given below:

Generating SSH keys on Windows, Linux, generallywhich and Mac:

OMAC OsX and Linux : terminal (build in)
OWindows :- PuTTY

Frequently Asked Question on SSH – FAQs

What is SSH?

SSH(Secure Shell) is an access credential that is used in the SSH Protocol. In other words, it is a cryptographic network protocol that is used for transferring encrypted data over the network.

How does SSH provide security?

It disintegrates the data that travels over the network via encryption. All that a receiving party would discover is something like to static, meaningless random data that requires decryption.

What is the default port number of SSH?

The default port number of SSH is 22.

Distinguish between SSH1 and SSH2?

SSH2 solely employs host keys for system authentication, SSH1 encrypts distinct portions of the packets and uses both server and host keys. SSH2 uses a different networking technology than SSH1, and it is a total redesign of the protocol. SSH2 is also more secure.

What is port forwarding in SSH?

The method of sending data over an encrypted secure shell connection between a local and remote server is called SSH port forwarding, or SSH tunnelling.


Article Tags :