Kali linux study notes (2) ---- SSH remote debugging kali

Kali linux study notes (2) ---- SSH remote debugging kali

SSH foreplay configuration:

​ When SSH is used in this aspect, it is a remote login protocol similar to telnet, which is operated by connecting to Kali's TCP port 22. The most important thing is that the data it transmits is encrypted, so it is relatively safe.

Environment configuration:

Set the physical machine and kali virtual machine to the same network segment Vnet8 (specifically Baidu)

Virtual machine vnet8

As shown in the figure kali ip: 192.168.91.128

Physical machine ip: 192.168.91.1

You can experiment with ping to see if you are connected to the same network segment. If the pings are different, one case is that the firewall is blocked and you can close it; the other case is that the configuration fails.


Configure the ssh parameters in kali:

vim /etc/ssh/sshd_config Edit the sshd_config file

  1. Remove the comment of #PasswordAuthentication yes (# is a comment) (ps: allow remote authentication login)
  2. Add a line PermitRootLogin yes (ps: allow direct login as root user)

Restart the SSH service:

The command is:

​ /etc/init.d/ssh start

or

​ service ssh start


Remote login

​ Realize login through secureCRT software:

Open the software, and then create a quick connect (quick connect)

Quick connect

Connection parameter settings: ip is 192.168.91.128, service is ssh2, login account is root, other defaults are fine.

Click OK to connect and enter the command line mode

Command line mode

This is the connection is successful, this is the remote login to Kali Linux via ssh.

After the connection is successful, you can find the connection setting interface

Set up

Set up
You can set the font size, background color and so on.

Sometimes it is normal for the server to restart. If the server does not start the ssh auto-start service, wouldn’t it be embarrassing? The ssh auto-start code:
update-rc.d ssh enable

Guess you like

Origin blog.csdn.net/qq_43266876/article/details/108905203