SSH Configurations RHEL (Redhat Linux) -Command Line

 

 SSH (Secure Shell) :-

=>It is a protocol which facilitates secure communications between two systems using a client-server architecture and allows users to log in to server host systems remotely.

=>Unlike other remote communication protocols, such as FTP or Telnet, SSH encrypts the login session, rendering the connection difficult for intruders to collect encrypted passwords.

=>SSH Protocol was developed in 1995 by Tatu Ylonen, Finland.

=>Packages:- openssh

=>Port Number:- TCP 22 (Default Port)

=>Main Config File:- /etc/ssh/sshd_config

=>Daemon Name:- sshd

 SSH CONFIGURATION FILES :-

=>sshd_config - The configuration file for the sshd daemon.

=>sshd_host_dsa_key - The dsa private key used by the sshd daemon.

=>authorised_key - This file holds a list of authorized public key for Servers. When the Client connect to a server, the server authenticates the Client by checking its signed public key stored within this file.

=>id_dsa - Contains the DSA private key of the user.

=>id_dsa.pub - The dsa public key of the user.

=>id_rsa - The rsa private key used by ssh for version 2 of the SSH protocol.

=>id_rsa.pub The rsa public key used by ssh for version 2 of SSH protocol.


 Check SSH Service :-

   #systemctl status sshd

 => If ssh is not installed, then install the ssh service in both systems (server & Client)
        #yum install openssh*

=> Check the connectivity from both Systems (Server and Client) 
        #ping 192.168.56.11
=> Goto Server create two users  Like, user1 and user2 assign password for the same.  
#useradd user1
#useradd user
=> Go To the client machine and access server users using ssh
#ssh user1@192.168.56.10 (Server IP)

   =>It Will ask you to confirmation say "yes" after that it will ask you for the password. Now your remote connection established from server user.







Comments

Popular posts from this blog

How to configure Mail Server in Redhat Linux

interview Questions on User Management in Linux

Kernel and Module Interview Questions