Friday, June 28, 2013

SSH-SERVER (Secure Shell Server)

                                       SSH-SERVER
                             ===============================

*SSH - stand for "secure shell" it is used to access the remote system and provide the advantage to transfer the
    data in encrypted form where 'Telnet' transfer the packets in planed text format

PORT NO -22

PACKAGE - SSHD

DEAMON  - SSHD
------------------------

*Install the 'ssd' package

    #yum   install  sshd

*Configure the '/etc/ssh/sshd_config' file

    #vim  /etc/ssh/sshd_config

    .write a new line in any where in the file

    allow users    u1

    :wq  [save the file ]

    .Mean now only 'u1' user can SSH

    #vim   /etc/ssh/sshd_config

    #X11  forwarding    no         [ if we want that ssh work not on graphic than remove # ]

    #X11  forwarding    yes     [ if we want that ssh work on graphic  remove # ]

    #vim /etc/ssh/sshd_config

    /Banner 
    /Banner  /shankar/ssh-banner [make a dir by the name 'shankar' and under this dir make a file 'ssh-banner      write any things in this file ]

    #mkdir  /shankar
   
    #vim   /shankar/ssh-banner

    "It is my server have you tryed it"


    :wq   [save the file ]


    #service sshd restart

    #chkconfig  sshd   on


     LOGIN FROM SSH
    ===============

    #ssh  -X  root@server1.deo.com
    #ssh  -Y  192.168.0.1
    #ssh  -X  192.168.0.1         [these all command for graphic login]
   
    . X and Y use for graphic mode


    #ssh  -l   user name  192.168.0.20  [login by particular user]

================================================

No comments:

Post a Comment