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 ,重新启动。

  • 相关阅读:
    【js】栈方法和队列方法
    adb devices 不能连接设备 could not install *smartsocket* listener
    mysql无法启动服务,错误1067
    Sql Server存储过程详解
    ef not in
    checkbox多选框取值
    Linq 常用操作(增删改)
    二进制与图片相互转换
    jQuery 二级联动
    百度地图API功能
  • 原文地址:https://www.cnblogs.com/aidata/p/12690525.html
Copyright © 2011-2022 走看看