zoukankan      html  css  js  c++  java
  • SSH远程登录

    参考网址:https://www.linuxidc.com/Linux/2019-08/160110.htm

    配置OpenSSH服务端

     

    使用SSH客户端程序

    登录

     指定端口登录‘

     

     

    类似于ftp

     

    TCP Wrappers的访问策略

    策略文件为/etc/hosts.allow和/etc/hosts.deny

    分别设置允许和拒绝。

    2、应用策略

    先检查hosts.allow,找到匹配则允许访问

    否则再检查hosts.deny,找到则拒绝

    两个文件都没有找到就允许

    3、配置实验

    实验1:

    实验2:

    拒绝172.16.13.41 ssh登录

     

    参考网址:https://www.linuxidc.com/Linux/2019-08/160110.htm

    原文已经写的很清楚了 

    安装远程桌面

    一、配置网络源

    #curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

    #wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

    二、安装相关的软件包

    #yum install -y xrdp

    #yum install -y tigervnc-server

     

    三、配置文件

    #vim /etc/xrdp/xrdp.ini

    max_bpp=32

     

    四、启动相关服务

    #systemctl start xrdp

    #systemctl enable xrdp   //开机自启

    五、防火墙设置

    开放 3389 端口,或者关闭防火墙

    #firewall-cmd --permanent --zone=public --add-port=3389/tcp

    #firewall-cmd --reload

     

    关闭防火墙

    systemctl stop firewalld

    systemctl disable firewalld  禁止服务开机自启

     

    然后通过

     连接

  • 相关阅读:
    Penetration Test
    Penetration Test
    Penetration Test
    Penetration Test
    Penetration Test
    Penetration Test
    Penetration Test
    Distributing Ballot Boxes HDU
    Queue HDU
    Cup HDU
  • 原文地址:https://www.cnblogs.com/zhuyunlong/p/11923758.html
Copyright © 2011-2022 走看看