First download a latest version of VMware Workstation
Then download a Kali Linux mirror file to create a virtual machine and use CD/DVD to install Kali Linux mirror file.
-
1. Configure SSH parameters
Modify the sshd_config file, the command is:
vi /etc/ssh/sshd_config
Remove the annotation of #passWordAuthentication No, and modify NO to yes default in yes // kali
-
Modify PermitrootLogin without-Password to be modified into
PermitRootLogin yes
-
Then save and exit Vim.
-
2. Start SSH service
command:
/etc/init.d/ssh start
or
service ssh start
View whether the SSH service status runs normally, the command is:
/etc/init.d/ssh status
or
service ssh status
-
3. Use the SSH login tool
-
After entering the user name and password, if you use the SSH connection tool, you still cannot connect to the Kali 2.0, as shown in the figure below:
-
So you want to form two keys:
#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
#ssh-keygen -t dsa -f /etc/ssh/ssh_host_rsa_key
After executing the command, the input password will be allowed, and the car is set directly to the empty.
-
Use the SSH connection tool to connect Kali again, and successfully get it!
-
4. Set the system to automatically start the SSH service
Method 1:
sysv-rc-conf
sysv-rc-conf –list | grep ssh
sysv-rc-conf to ssh on // The system automatically starts the SSH service
sysv-rc-conf to ssh off // Close the system to automatically start the SSH service
Method 2:
Update-rc.d ssh enable // System automatically start the SSH service
Update-rc.d ssh disabled // Close the system to automatically start the SSH service
END