Shell Terminal

[切换到中文]

This article is machine translated

The most commonly used protocol in SSH is the shell protocol. In OnTheSSH, there are multiple ways to open a shell terminal:

  • Double-click a remote host name in the left sidebar
  • Click on a remote host name with your mouse in the left sidebar, and then click the “shell Terminal” button on the right
  • Copy an IP address to the system clipboard (for details, refer to the Convenient SSH connection section later)

At the bottom right side of the shell terminal window, there is information about function keys and the number of rows and columns:

  • Ctrl+H: Open the help window
  • Ctrl+T: Open the Settings window
  • Lines: Display the number of lines (character height) of the shell window. When the mouse stretches the window, the number of lines will change
  • Colnums: Display the number of columns (character width) of the shell window. When the mouse stretches the window, this number of columns will change

Help Window

Pressing Ctrl+H will open the help window.

The help window will appear by default on the right side of the main window, displaying help information for commonly used shell commands. Note that the help content and the shell terminal are interrelated. For instance, if you enter the character ‘p’ in the shell terminal, the help window will automatically display several commands starting with the character ‘p’, as shown in the above figure.

Settings Window

Pressing Ctrl+T will open the Settings window.

Here, you can set the size of the displayed font, color style, whether the cursor flashes, and whether input methods are supported. If you check the “Permanently Save Settings” option below, this setting will be valid when you open this remote host shell window in the future. If you don’t check it, it will only be valid in the current shell window.

Mouse

The mouse in the shell terminal has the following functions:

Double-clickSelect the word and copy the selected text to the system clipboard
Select (drag)Copy the selected text to the system clipboard
Right-clickPaste the content of the system clipboard to the cursor position
Mouse wheelWindow scrolling (Ineffective when using alternate Windows such as vim programs)

Convenient SSH connection

Under normal circumstances, to connect to a remote Linux host, you need to first create this remote host in the OnTheSSH program (in the left column). In some cases, only a temporary connection to this remote host is required. Here is a convenient method provided:

Copy the “connection information” of this remote host to the clipboard. At this point, the program will recognize this “connection information” and prompt it with a flashing icon (in the “Recent” column on the left). When you click on this flashing icon, a window will pop up to guide you through subsequent operations.

The program will automatically recognize the first “connection information” in the clipboard, which includes the following types:

  • ip address, such as 192.168.2.45
  • Address and port, such as 10.2.3.4:2222
  • Address, port and username, such as test@127.0.0.1:800

For security reasons, password identification is not provided.

This might be very useful for operation and maintenance personnel, who usually manage dozens or even hundreds of remote hosts and use tools like Notepad and Excel to record connection information. The convenient connection function can be adapted to their usage habits. When you want to connect to a remote host, you can copy the connection information of this host from notepad or Excel (e.g. root@10.10.3.4:22) to the clipboard, and then click the “flashing icon” to establish the SSH connection.