kali-静态IP配置

# vim /etc/network/interfaces
    增加一下内容
    auto thh0
    inface eth0 inet static
    address 192.168.22.131
    gateway 192.168.22.1
    netmask 255.255.255.0

重启网卡
# ifconfig eth0 down
# ifconfig eth0 up

开放22端口供远程连接
# vim /etc/ssh/ssh_config
    修改
#22 为 
  22
或者
    修改
#PermitRootLogin prohibit-password 为
  permitRootLogin yes

重启ssh
# service ssh start
开机启动
# systemctl enable --now ssh

 

posted @ 2022-03-05 23:11  才知几何  阅读(270)  评论(0)    收藏  举报