Page 158 - RHEL8 BOOK
P. 158

SSH Server (Secure Shell)























          SSH Server (Secure Shell) is a program for logging into a remote host / server and managing remote host
          / server by executing commands. It is intended to provide secure encrypted communications between
          client and server over an insecure network. SSH will also support X11 forwarding (which means
          executing GUI tasks).

          SSH Server Profile
            Packages : yum install openssh
            Port Number: 22 is default
            Config File: /etc/ssh/sshd_config
            Daemon Name: sshd

          Advantages of SSH Server
            It Provides secure connection to remote host
            Using SSH we can also copy files from one host to another host (SCP) Secure copy
            Upload file securely using SFTP
            Execute commands on remote host
            Create Passwordless authentication (Key Based Authentication ) to run automated scripts

                                   SSH Server (Secure Shell) Installation and configuration

          Step 1: To install SSH Server.
          [root@ArkitServer ~]# yum install openssh

          Step 2: Enable and Start Services
          [root@ArkitServer ~]# systemctl enable sshd.service
          [root@ArkitServer ~]# systemctl status sshd.service

          Step 3: Configure SSH Settings using config file
          [root@ArkitServer ~]# vi /etc/ssh/sshd_config

          Restrict access to particular Network by adding network id. Example: 192.168.1.0/24
          #ListenAddress 0.0.0.0
          #ListenAddress ::
          Change SSH default port to something else (instead of 22). After defining the port number in config
          file we have to apply SELinux policy
          Port 1028


                                                       S. Pradhan
                             (MCA, MBA-IT, BCA, CCNA, MCSA 2012, RHCE, ETHICAL HACKING)
                                             Email Id:-spradhan.iiht@gmail.com
                                                           158
   153   154   155   156   157   158   159   160   161   162   163