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

 

posted on 2020-04-13 12:05  AI数据  阅读(1468)  评论(0编辑  收藏  举报

导航