1. Definition: The network card is a hardware device specially responsible for network communication, and the IP address is the address information set on the network card.
Tip: A computer may have one physical network card and multiple virtual network cards. In Linux, the name of the physical network card is usually represented by ensXX.
ifconfig view network card configuration information
Note that the command is discarded with ctrl+C
The ip of this machine is 172.17.0.1
1.1 ifconfig | grep inet View the ip address corresponding to the network card (quickly locate the ip address)
Definition: The grep command is a powerful text search tool. grep allows pattern search on text, also known as regular expressions. The | pipeline means that the previous output will be used as the input of the next command
Pay attention to what enters the input interface after the output. The input should be ifconfig. This is the cause of the error.
2. Ping ip address to check whether the connection of the target ip address is normal, that is, check whether the network is connected.
If the ping succeeds but cannot connect to the system, focus on the ssh of the connected object.
Remember to end ping with ctrl+C, otherwise it will send and receive packets endlessly.
Ping the target host address: it is detected whether the connection of the target host is established
ping127.0.0.1: The loopback address is also referred to as a local return, to check whether the local network card is normal.
3. SSH remote login: username@ipaddress
Definition: ssh in Linux is very convenient. You can connect to a remote host through an ssh client, but the remote host also needs to run an ssh server. Data transmission is encrypted and compressed.