Introduction to Linux (1)

   Client connections to Linux servers are based on the ssh protocol. Commonly used connection tools for clients include SecureCRT/xshell/putty , etc., which are all based on ssh2 (encrypted connection) to connect to port 22 on the Linux server.

 

If you can not connect to the linux server using SecureCRT , there may be the following three situations:

    1 , the server's firewall iptables

    Processing method: /etc/init.d/iptables stop to close the firewall

    2. The SSH service is not enabled or the port is not port 22 (may be modified by someone)

    How to deal with it: talk about it later

    3. There is a problem with the line from the client to the server.

    Processing method: Ping the ip address of the server to see if it can be pinged

 

After connecting to SecureCRT , if you feel that the interface and fonts are not satisfactory, you can adjust them at will.

 

1 , adjust the font size and style:

Click options ( options )-->>Session options ( session options )-->>Terminal ( terminal )-->>Appearance (appearance) -->> Manually modify the values ​​of Normal font and Narrow font

 

2, adjust the cursor style :

Click options ( options )-->>Session options ( session options )-->>Terminal ( terminal )-->>Appearance (appearance) -->>Cursor style drop-down box to select short black --->>Use color Tick, select green

 

3, adjust the terminal and buffer

Click options ( options )-->>Session options ( session options )-->>Terminal ( terminal )-->>Emulation ( emulation )-->>Terminal drop-down box, select Linux , check the ANSI Color on the right and place the following The Scrollback buffer (scrollback buffer) is modified from 500 to 32000 , which can adjust the scrolling distance of the right scroll bar up and down

 

4 , the output of the configuration log

When you may type some commands and suddenly close the SecureCRT window, you can't remember those commands you just typed. The output of the configuration log allows the system to help record the command you just typed:

Click options ( options )-->>Session options ( session options )-->>Terminal ( terminal )-->>Log File in the Log File name select the path where the log file needs to be stored E:AAA\BBB\CCC\% S-%Y-%M-%D-%h.log   names files by date and time

and tick Start log upon connect and Append to file

 

 

 

5, configure the client and linux server to upload and download files

Click options ( options )-->>Session options ( session options )-->>Terminal ( terminal )-->>X/Y/Zmodem in Directories Upload and Download to select the path to be uploaded file storage and download file storage route of

Personal habits upload and download to the same path

 

Use sz -y ( overwrite if needed ) + filename to download the file to the specified path

Use rz -y (overwrite if needed) to select the file to upload in the specified window

Disadvantages of the Sz and rz commands: Only files can be uploaded and downloaded. If a large number of files need to be uploaded or downloaded, they must be packaged and then operated.

 

Tags for batch execution:

Click Connect to open a connection window, check Open in a tab so all connections will be opened in one window.

In the above view , select Chat Window ( chat window ) and a send chat to all sessions will appear below . Sending execution commands in this window can make multiple windows execute commands at the same time.

 

 

 

 

 

Shortcut key :

The shortcut key to exit the connection: Ctrl + d , which is equivalent to executing exit/quit directly . If you want to reconnect again, just type: Enter

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325987494&siteId=291194637