zoukankan      html  css  js  c++  java
  • kali2020 网络配置 中文字体 SSH登录

    网络配置  vi /etc/network/interfaces 

    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    
    source /etc/network/interfaces.d/*
    
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    
    auto eth0
    iface eth0 inet static 
    address 192.168.147.11
    gateway 192.168.147.2
    netmask 255.255.255.0

    DNS  vi /etc/resolv.conf 

    localdomain
    nameserver 8.8.8.8
    nameserver 223.5.5.5
    nameserver 114.114.114.114

    重启网络 service networking restart 

    重启主机

    eth0,eth1,eth2……代表网卡一,网卡二,网卡三……

    lo 代表 127.0.0.1,即localhost

    换源

    #中科大
    deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
    deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
    #阿里云
    #deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
    #deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
    #清华大学
    #deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
    #deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
    #浙大
    #deb http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
    #deb-src http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
    #官方源
    #deb http://http.kali.org/kali kali-rolling main non-free contrib
    #deb-src http://http.kali.org/kali kali-rolling main non-free contrib

    配置源

    vi /etc/apt/sources.list

    更新软件包和清除旧软件缓存

    apt update && apt-get clan

    安装中文字体

    apt-get install ttf-wqy-zenhei

    稍等

    SSH登录

    vi /etc/ssh/sshd_config

    PermitRootLogin prohibit-password改为 PermitRootLogin yes

    #PasswordAuthentication yes,将前面的#去掉

     

    启动SSH服务,命令如下:

     /etc/init.d/ssh start或者service ssh start

      启动SSH服务以后,通过如下命令来查看启动是否成功:

    /etc/init.d/ssh status或者service ssh status

     如果状态为“active (running)”则表示服务在运行当中。

    设置开机自动启动

    命令: update-rc.d ssh enable ,重新启动。

  • 相关阅读:
    docker 方式安装gitlab时,项目的clone地址及项目文件列表地址为机器名的问题解决办法
    CPU流水线
    Element中el-form嵌套el-table双击编辑提交检验
    java基础知识
    C#多线程下载
    mysql优化
    C++ 算法(一)
    前端vue 的面试总结 以及答案以及前端技术点面试
    C# 组合任务
    C# List去重DistinctBy扩展
  • 原文地址:https://www.cnblogs.com/aidata/p/12690525.html
Copyright © 2011-2022 走看看