Discovering the concept of linux

Discovering the concept of linux

LINUX WORKSHOP :- Day 4

Hello everyone ;

I am Teertha Darekar Welcome to my day 4 blog of linux Workshop conducted by Pranav Jambare sir.

CONTENTS :-

  • Find and locate

  • SSH

lets start our todays blog :-

--> FIND :-

  • The find command is to search the specified files in all of your computer's directories.

  • The find command can search and traverse from different file partition systems belongings to a single or more storage device under the starting directory.

  • It is used to find files for various conditions like permission , user ownership , modification , date/time , size , etc..

  • The find command provides a list of every file under the current working directory by default .

SYNTAX :-
find [where to start search] [what to find] [-options] [file/directory name]

--> Locate :-

  • The locate command is used for quickly finding files and directories .

  • This command is a more convenient and efficient alternative to the find comand .

  • The locate command doesn't search the entire file system , but looks through a regularly updated file database in the system .

  • The locate command works better and faster than find command.

SYNTAX :-
locate [options] Pattern

--> SSH ( secure shell )

  • SSH is a network protocol that enables secure remote connections between two system .

  • It is used to manage machines , copy ,or move files between systems .

  • SSH transmit data over encrypted channels , security is at a high level.

SYNTAX :-
ssh [user]@[ip]

There are two types of KEY in SSH :-

Public key :-

  • Public key is used for the purpose of encrypting the data .

  • It can be given to any person with whom an indivitual wants to communicate .

  • Its mechanism is slower .

    Private key :-

  • Private key is used for both encrypting and decrpting the sensitive data .

  • A user private key is a key kept secret by the SSH user on his/her client machine .

  • The private key mechanism is faster.

Setup SSH on server:-

  • Package installation
SYNTAX:-
yum install [package name] -y
  • Check port
SYNTAX:-
netstat -tunlp|grep 22
  • Check service status:-
SYNTAX:-
systemctl status [service name]

SSH configuration file :-

SYNTAX :-
vi /etc/ssh/sshd_config

To allow and deny user to connect to a specific user :-

  • To allow :-
SYNTAX :-
vi /etc/host.allow
  • To deny :-
SYNTAX :-
vi /etc/host.deny

THANKYOU...