简单的记录一下kali的初步登录使用准备工作
初始默认用户名和密码都是:Kali
查看版本
kali@kali:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Kali
Description: Kali GNU/Linux Rolling
Release: 2020.2
Codename: kali-rolling
查看IP地址
kali@kali:~$ ip add show #查看IP地址
查看ssh服务状态
kali@kali:~$ systemctl status ssh #查看ssh服务状态
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; disabled; vendor pre>
Active: inactive (dead)
Docs: man:sshd(8)
man:sshd_config(5)
kali@kali:~$
由于ssh服务没有开启,所以我们要把ssh服务开启才可以用工具远程登录kali
kali@kali:~$ sudo systemctl start ssh
[sudo] password for kali:
kali@kali:~$
再次查看ssh服务状态,处于活动状态。
kali@kali:~$ systemctl status ssh
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; disabled; vendor preset: disabled)
Active: active (running) since Fri 2021-06-18 10:17:09 EDT; 7min ago
Docs: man:sshd(8)
man:sshd_config(5)
Process: 1377 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
Main PID: 1378 (sshd)
Tasks: 1 (limit: 2310)
Memory: 5.3M
CGroup: /system.slice/ssh.service
└─1378 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
kali@kali:~$
ssh处于活动状态,此时可以用远程登录工具(Putty/ SecureCRT/ XShell)登录kali
备注:如果还是不能远程登录,可以检查一下/etc/ssh/sshd_config
kali@kali:~$ vim /etc/ssh/sshd_config