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.
Download method:
Right click on the download arrow, copy the link address, use Thunder or IDM (Internet Download Manager) to download faster.
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.
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.
After downloading, it is a 7z compressed package. Use a decompression tool (such as 360 compression) to decompress into a folder.
for example:
Then open it with VMWare
Find the root directory of the decompressed image and open the vmx file.
Get a ready-made virtual machine:
Direct boot, user name and password are kali.
3. Modify the root password
After logging in, open the terminal (Terminal), the red circle icon
Input:
sudo passwd root
and press Enter (note that you must press Enter after each command is entered)
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
When zh_CN.UTF-8 appears (the arrow moves up and down to select) select the next step
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
:
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
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
Arrow ↓ scroll down to find: #PasswordAuthentication yes
is about line 59
Remove #
and press the Esc key to exit edit mode and enter command mode.
Enter: wq to save
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
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
Create a new connection
. The name is used to distinguish the connection. Just take
the host (H) and enter the IP you just saw.
"User authentication", enter root and password
In the future, you can open the connection in the file - open
Double click to open