一般在 Linux Server 上都是灌好,ssh server 和 sudo 灌好就可以只插網路線放著.. 使用遠端來管理它,只是.. ssh 預設的 root 是可以從遠端登入的,這真的很危險

  1. 用 vi 編輯 ssh 設定檔 sshd_config
    sudo vi /etc/ssh/sshd_config

  2. 修改 sshd_config 內容
    # Authentication:
    LoginGraceTime 120;
    PermitRootLogin yes / * 改為 no :關閉 root 遠端登入 * /
    StrictModes yes;

  3. 重新開啟 ssh 服務
    /etc/init.d/ssh restart;
arrow
arrow
    全站熱搜

    莊子 發表在 痞客邦 留言(1) 人氣()