SSH hanya untuk root

Discussion in 'Masalah Teknik dan Keamanan' started by frozts91, 16 May 2009.

Thread Status:
Not open for further replies.
  1. frozts91

    frozts91 Poster 2.0

    Messages:
    159
    Likes Received:
    1
    Trophy Points:
    18
    Para Master, tanya nehh
    biar ssh nya bisa kepakai login cuman buat root bagaimana ya?
    Maksudnya biar user lain ga bisa login ke SSH.
    OS nya CentOS 5.2.
    Mohon bantuannya segera :D
     
  2. pengki

    pengki New Member

    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Coba ditambahin :
    Code:
    AllowUsers root
    
    di /etc/ssh/sshd_config mas. terus restart ssh daemonnya.

    Atau edit satu-satu user di /etc/passwd dari /bin/bash ke /sbin/nologin pakai command usermod -s

    RTFM ? ;)
    Code:
    man sshd_config
    man usermod
    
     
  3. tajidyakub

    tajidyakub Apprentice 1.0

    Messages:
    379
    Likes Received:
    6
    Trophy Points:
    18
    Kalau di user lain dibikin shell nya /sbin/nologin atau /bin/false juga nanti dia gak bisa login ssh, juga gak bisa di su dari root :).

    Tapi rada aneh juga pak requirementnya biasanya malah user root yang didisable :)
     
  4. pengki

    pengki New Member

    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    ho oh.. emang agak aneh rasanya. :D
    mending login root yang di-disable, terus su kalau mau jadi root.
     
  5. frozts91

    frozts91 Poster 2.0

    Messages:
    159
    Likes Received:
    1
    Trophy Points:
    18
    jadi pakai su su ya?
    ini minta root nya yang disable :eek:
     
  6. pengki

    pengki New Member

    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    yap. root ngga boleh login langsung lewat ssh. harus di-su-su-i dulu kalau mau dapet akses root. :p
     
Loading...
Thread Status:
Not open for further replies.

Share This Page

Loading...