Virtual machine installation kali and remote connection

First you need to install VMWare, refer to other tutorial documents.

1. Download kali

It is recommended to download the version of Virtual Machines, no installation is required, and it is available after booting.
If you want to install it yourself, download the Bare Metal version.
insert image description here

Download method:
Right click on the download arrow, copy the link address, use Thunder or IDM (Internet Download Manager) to download faster.
insert image description here

2. Open the kali image

First download the system image, enter the kali official website, and select Download Kali Linux in Downloads, as shown in the figure below.
insert image description here

Choose the appropriate version according to the computer configuration. Here I choose the 64-bit version. Click HTTP to download the image file, or use Thunder for torrent download.

Kali version introduction: the first type is the regular 32 and 64-bit version; the second type is the simplified version such as: kali linux light; the third type is the desktop environment such as: mate, kde, Xfce, etc.
insert image description here

After downloading, it is a 7z compressed package. Use a decompression tool (such as 360 compression) to decompress into a folder.
for example:
insert image description here

Then open it with VMWare
insert image description here

Find the root directory of the decompressed image and open the vmx file.
insert image description here

Get a ready-made virtual machine:
insert image description here

Direct boot, user name and password are kali.
insert image description here

3. Modify the root password

After logging in, open the terminal (Terminal), the red circle icon
insert image description here

Input:
sudo passwd root
and press Enter (note that you must press Enter after each command is entered)
insert image description here

First enter kali's password kali and
press Enter
, then enter a new password, such as 123456 (note that the password will not be displayed, which is normal), and press Enter. Then re-enter the password again, it must be the same as before, and press Enter.
Remember this root password, it will be used later.

4. Change the language to Chinese (not required)

Open the terminal, and the root user enters the command:
dpkg-reconfigure locales
and
press Enter to find zh_CN.utf-8, press the space to check it, and press Enter for the next step
insert image description here

When zh_CN.UTF-8 appears (the arrow moves up and down to select) select the next step
insert image description here

Just restart
5. Replace the ATP source with Alibaba Cloud source
Command: vim /etc/apt/sources.list
Press i to enter the edit mode
deb http://http.kali.org/kali ... Add a #comment out before this line
Then add two sentences in the document (Shift+Insert paste):
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling The final effect of main non-free contrib
:
insert image description here

Press Esc to exit edit mode
and enter: wq to save and exit

6. Configure remote connection

Input: su root Enter
Enter the root password and
press Enter Switch to the root user
Enter the command (the shortcut key pasted in the terminal is Shift+Insert):
vim /etc/ssh/sshd_config
press Enter
insert image description here

Press/
enter PermitRootLogin
(the shortcut key pasted in the terminal is Shift+Insert)
and press Enter
to find #PermitRootLogin prohibit-password
is about line 34, and press Enter after finding it.
Then press i to enter the edit mode (at this time there is a -- INSERT -- prompt)
to change (or add a line)
PermitRootLogin yes
insert image description here

Arrow ↓ scroll down to find: #PasswordAuthentication yes
is about line 59
insert image description here

Remove #
and press the Esc key to exit edit mode and enter command mode.
Enter: wq to save
insert image description here

If it is not changed correctly, you need to change it again, enter: q! to exit, and then start from this step:
vim /etc/ssh/sshd_config
press Enter

7. Start the SSH service

SSH service command:
service ssh start
press Enter
ifconfig press Enter to check the IP, for example, here is 192.168.142.141
insert image description here

OK, now you can connect with XShell.

Add the boot self-start command:
update-rc.d ssh enable
press Enter.
Self-start needs to restart kali to take effect, and you can restart it later

Xshell7Tools

https://pan.baidu.com/s/151W_MeLrrceUZQIFiNlMdg?pwd=8888
Create a new connection
insert image description here

Create a new connection
. The name is used to distinguish the connection. Just take
the host (H) and enter the IP you just saw.
insert image description here

"User authentication", enter root and password
insert image description here

In the future, you can open the connection in the file - open
insert image description here

Double click to open
insert image description here

Guess you like

Origin blog.csdn.net/m0_52051132/article/details/127337556