linux常用系统配置

    技术2022-05-11  52

    修改登录方式

    # cd /etc/# vi inittab

    #   0 - halt (Do NOT set initdefault to this)#   1 - Single user mode#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)#   3 - Full multiuser mode(命令行模式)#   4 - unused#   5 - X11(图形化模式)#   6 - reboot (Do NOT set initdefault to this)#id:3:initdefault:

    ssh中不允许root用户登录:修改/etc/ssh/sshd_config中PermitRootLogin no


    最新回复(0)