Xmanger远程登录Linux服务器

  1. 环境介绍

    服务器端:Centos 6.4

    客户端:Windows 7

  2. 服务器端配置

    将系统默认启动模式设置为图形模式,配置文件/etc/inittab文件内容调整如下:


    # Default runlevel. The runlevels used are:
    #   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:5:initdefault:

    gdm配置,配置文件/etc/pdm/custom.conf

    # GDM configuration storage
    [daemon]
    [security]
    AllowRemoteRoot=true
    [xdmcp]
    Enable=1
    [greeter]
    [chooser]
    [debug]

    iptables配置:

    # Firewall configuration written by system-config-firewall
    # Manual customization of this file is not recommended.
    *filter
    :INPUT ACCEPT [0:0]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [0:0]
    -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
    -A INPUT -p icmp -j ACCEPT
    -A INPUT -i lo -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 177 -j ACCEPT
    -A INPUT -m state --state NEW -m udp -p udp --dport 177 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
    -A INPUT -j REJECT --reject-with icmp-host-prohibited
    -A FORWARD -j REJECT --reject-with icmp-host-prohibited
    COMMIT


  3. 客户端配置

    Windows防火墙允许Xmanger访问网络

    wKioL1NuJa2BeJN5AAFHv97U78Y105.jpg

你可能感兴趣的:(Xmanger,远程登录linux)