đŸ–Ĩī¸How to Install Secure Shell (SSH) for Remote Access

Introduction

Good to know : understanding ssh and its uses

SSH is a remote administration protocol that allows users to access and control their servers on a network securely. Starting from running a program, creating a folder, deleting files, creating files, transferring files, to running or stopping a service. In short, SSH allows users to manage their servers freely even remotely. SSH has several crucial functions for managing data transfer traffic. Specifically, the following are the functions and benefits of SSH:

  • Secure remote access to SSH-enabled systems or network devices for the user and process it automatically.

  • SSH will terminate the connection automatically if there is suspicious activity on the connection being used. So you can avoid various cyber threats such as IP and DNS spoofing, data manipulation, illegal tracking, and so on.

  • Perform automatic and secure file transfers.

  • Securely launch commands on remote devices or systems.

  • Manage components of network infrastructure securely.


Configuration

Install Package

apt install ssh -y

Edit File SSH

nano /etc/ssh/sshd_config
#LoginGraceTime 2m
PermitRootLogin yes
#StrictModes yes

Restart Service

/etc/init.d/ssh restart

Configuration is Completed

Check SSH Server

We will test the ssh service using cmd/putty

ssh <user>@<ip-addr-server>
ssh [email protected]

Last updated