Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Common solutions to problems in connection mode and connection of linux system

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. Configuration of local server / virtual machine network

1.1.nmtui configuration (centos 6:setup)

1.2. Verify whether the network card is configured correctly and whether ping 223.5.5.5 is unobstructed. In view of this situation, the following solutions are available.

1.2.1 check whether the network configuration is correct

1.2.2 restart the network service: (systemctl restart network)

1.2.3 View the Nic address (centos7:ip addr show centos6:ifconfig)

1.2.4 View routing address (centos7:ip route show centos6:route-n)

1.2.5 check whether the route in the network editor is working properly

1.2.6 on secondary ping223.5.5.5, this situation has been successful

two。 Remotely connect server / virtual machine

2.1. The use and optimization of remote connection tools, and how to establish a connection

2.1.1 the optimization of the tool for xshell,xshell is as follows

2.1.2 right-click the stand-alone and uncheck the address bar and link bar

2.1.3 stand-alone file-attribute, find the terminal, change the terminal type to linux, and set the buffer to a maximum value of 200000

2.1.4 Click VT mode to change the initial numeric keypad to (set to normal); Click Advanced mode to disable the terminal to change the title check box

2.1.5 Click the appearance, set the font size to 14, the font name is DejaVu Sans Mono, and you can use the flashing cursor (this setting is based on your hobby)

2.1.6 Click Advanced and select logging (logging is important, remember not to overwrite, so your operation will be saved permanently)

2.1.7 Click the tool option, select Advanced, and disable the ringtone check box. On opening General, set the session option (the session option is to record the address where you are connected to the server, and when you go to work for another company, you can record the conversation quickly)

2.2.xshell connects to the server

2.2.1 Click add, enter name (name of remote connection server), protocol (SSH- service), host (name of host you want to connect to), port number (22), click OK

2.2.2 Click the link and you can

2.2.3 successful connection

3.1. How to solve the problem of connection failure

3.1.1 check the ability to ping through ping first (ping 10.0.0.200, check whether it is unobstructed, and how to solve it)

3.1.2 View the network card IP and routing

3.1.3 bb2. Check to see if the virtual network editor is configured properly

3.1.3 check whether the virtual network card is configured properly (right click windows, click change network settings, click vmnat8, click view network information, check whether it is normal, it is the same network segment of your server)

3.1.4 restore all the contents in the virtual network editor and reset it this time to solve the problem.

3.1.5 check whether the virtual network services are enabled normally (use win+R, enter services.msc, and check whether the vmvare services are all started. If not, start manually, fail to start manually, and reinstall the computer system)

3.2 check to see if it is the cause of the protective wall

3.2.1 View windos's firewall

Win7: click the win key in the lower left corner of the desktop to find the control panel, find the network and security, click to find the firewall, check whether the status is closed win10: use the shortcut key win+Q, enter the control panel, find the network and security, click to find the firewall, and check whether the status is closed.

3.2.2 check to see if linux Firewall is off

Centos7:systemctl stop firewalld centos6:service iptables stop

3.3.The status of remote service ssh service being shut down or port changed

3.3.1 check whether the ssh service is enabled and whether the port is changed

Ssh service enabled: if systemctl status sshd is accept, it means enabled. If not, systemctl start sshd

Whether the port has been changed: (1). Use telnet to view telnet 10.0.0.200 22

(2) .ss-anptu | grep "22" (the following is an extension)

4. Extend:

1. The difference between SSHJ telnet and vnc

Ssh: use public key encryption to overcome the insecure state of telnet and make data transmission more secure (port 22)

Telnet: a remote login protocol that changes the terminal where the user logs in into the terminal of a server / virtual machine, but sends the data in clear text, so the connection is not secure (port 21).

Vnc:telnet and ssh use the form of text transfer, but vnc uses a graphical interface, which is common with the following version of linux (teamviewer and sunflower (work experience)) (port: 5900-5906, default is 5901)

two。 Comparison of three modes of network connection (host mode, nat mode, bridge mode)

Host mode: (VMnet1)

The virtual system and the real server are isolated from each other. In this mode, the virtual system can communicate with other virtual systems and with the computer where the virtual system is located, but it does not communicate with other computers (virtual and virtual communicate with each other, virtual and its own computers do not communicate with other computers).

Nat mode: (VMnet8)

In nat mode, as long as the host can access the external network, its own virtual host can communicate. In nat mode, the TCP/IP address of the virtual system is obtained automatically by DHCP, so there is no need to set it manually.

Bridging mode

Each virtual host is an independent system, which needs to set their IP information to communicate, but it must be set in the same network segment (that is, if you want to communicate, you must be in the same network segment).

3. Commonly used shortcuts

Ctrl + c: exit

Ctrl + Q: turn on the screen of xshell

Ctrl + l: clear the screen

Ctrl + a: move the cursor to the front

Ctrl + e: move the cursor to the back

Ctrl + u: cut or copy what is in front of the cursor

Ctrl + k: cut or copy the content behind the cursor

Ctrl + s: lock the xshell screen

Ctrl + y: paste data

Shift + insert: paste

Ctrl + insert: replication

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report